I want to calculate the difference in Hours of two date pickers in date/time format:
So, the beggining is "Inicio" and the end is "Fim".
How to express:
Datediff(Inicio, Fim, Hours)?
Thanks!
Solved! Go to Solution.
Hi @WebPortal ,
This should do it
DateDiff(
(
DateValue1.SelectedDate +
Time(
Value(HourValue1.Selected.Value),
Value(MinuteValue1.Selected.Value),
0
)
),
(
DateValue2.SelectedDate +
Time(
Value(HourValue2.Selected.Value),
Value(MinuteValue2.Selected.Value),
0
)
),
Hours
)
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
Hi @WebPortal ,
This should do it
DateDiff(
(
DateValue1.SelectedDate +
Time(
Value(HourValue1.Selected.Value),
Value(MinuteValue1.Selected.Value),
0
)
),
(
DateValue2.SelectedDate +
Time(
Value(HourValue2.Selected.Value),
Value(MinuteValue2.Selected.Value),
0
)
),
Hours
)
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
User | Count |
---|---|
181 | |
52 | |
50 | |
34 | |
32 |
User | Count |
---|---|
284 | |
97 | |
89 | |
81 | |
77 |