I wanna calculate difference between:
Many days, and the hours and minutes between those days
For example:
12/03/2021 08: 54 until 12/09/2021 16:48
Display the result: 6 days, Hours:Minutes
Solved! Go to Solution.
hi @Gorilla_8 noted, as the datepicker don't provide the functionality for hours and minutes consider the following:
Hope it helps,
R
hi @Gorilla_8
you can try
With(
{
StartDate:DateTimeValue("12/03/2021 08:54"), //replace the date with yourValue
EndDate:DateTimeValue("12/09/2021 16:48") //replace the datestring with yourValue
},
DateDiff(StartDate,EndDate) & " days, " & Abs(Hour(EndDate) - Hour(StartDate)) & " hours: " &Abs(Minute(EndDate) - Minute(StartDate)) & " minutes"
)
Hope it helps
R
Thank you very much for the response, but I need to compare datepicker values with hour and minutes.
hi @Gorilla_8 noted, as the datepicker don't provide the functionality for hours and minutes consider the following:
Hope it helps,
R
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.
User | Count |
---|---|
201 | |
71 | |
51 | |
49 | |
20 |
User | Count |
---|---|
261 | |
123 | |
86 | |
79 | |
72 |