Hi everybody. I need to calculate hours between two dates from a text label. What i tried is giving me 6 hours as a result.
Here´s what i spect:
StartDate: 20/02/2022 23:00
EndDate: 21/02/2022 04:30
Total Hours: 5 hours
This is what i tried:
"Total Hours: " & DateDiff(DateTimeValue(start_date_label.Text); DateTimeValue(end_date_label.Text);Hours)
Any help will be much appreciated.
Hi @madcoderz,
Here is what I achieve on my side:
I will suggest you use a Date time picker to display date time value.
WarrenBelz
791
Most Valuable Professional
MS.Ragavendar
410
Super User 2025 Season 2
mmbr1606
275
Super User 2025 Season 2