web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Apps
Unanswered

DATEDIFF

(0) ShareShare
ReportReport
Posted on by 11

tfernandez_0-1621743001374.png

Buenas, necesito calcular las horas entre las fechas que aparecen arriba, la idea es calcular las horas extras de un empleado, he intentado muchas veces usar el datediff, pero no hay resultado, por favor, ayuda.

 

Categories:
I have the same question (0)
  • Verified answer
    CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @tfernandez To get something like this,

    CNT_0-1621749716730.png

    Use this formula,

    "Minutes: " & DateDiff(DateTimeValue(date1.SelectedDate & " " & hour1.Selected.Value &":" & minute1.Selected.Value), DateTimeValue(date2.SelectedDate & " " & hour2.Selected.Value &":" & minute2.Selected.Value), Minutes)
    "Hours: " & DateDiff(DateTimeValue(date1.SelectedDate & " " & hour1.Selected.Value &":" & minute1.Selected.Value), DateTimeValue(date2.SelectedDate & " " & hour2.Selected.Value &":" & minute2.Selected.Value), Hours)

    Remember: Set the Format of the DatePicker to ShortDate.

    Hope this helps! 

  • tfernandez Profile Picture
    11 on at

    Hola! 

    Al parecer la formula sirve perfectamente, ahora el problema que tengo es que al darle play a mi aplicacióin no me muestra la información para probarla. 

    tfernandez_0-1621945766117.png

    Cuando debiese mostrarse así 

     

    tfernandez_1-1621945799732.png

    ¿Cupal podria ser el problema?

  • CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @tfernandez For some reason your controls are not visible. Check their visible property.

     

    Please remember to give a 👍 and accept the solution as it will help others in the future.

  • tfernandez Profile Picture
    11 on at

    Ecaxtamente, cambie la configuraci´´on y ya puede vers, sin embargo la formula no tuvo resultado.

    tfernandez_0-1621947133376.png

    Estare haciendo algo mal?

     

  • CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @tfernandez 

    Remember: Set the Format of the DatePicker to ShortDate.

    Hope this helps!

     

    Please remember to give a 👍 and accept the solution as it will help others in the future.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard