
Hi Team,
We need to calculate time between two date time fields and display in days-hours-minutes.
DateTime1(field1) = 01-Dec-2021 - 09:46:54
DateTime2(field2) = 02-Dec-2021 - 11:50:54
Eg : 1 day - 2 hours - 4 minutes (output)
If anyone come across this please do guide.
Thanks,
Krishna.
You can use DateTimeUtil::getDifference to get difference (seconds) of two datetimes. Then you can easily calculate days, hours and minutes from that.