Hi Akash,
You can use the hoursBetween function to calculate the hours between two datetimes, see https://docs.mendix.com/refguide/between-date-function-calls/#5-hoursbetween
I hope this helps.
Michiel
Hi Akash Gunupudi,
Certainly! Let’s format this professionally:
Create the Duration Variable:
floor(minutesBetween($Schedule/From, $Schedule/To))
to calculate the duration between the “From” and “To” times in minutes.Display the Duration:
formatDecimal(floor($Duration / 60), '00') + ':' + formatDecimal(floor($Duration mod 60), '00')
Remember to adjust the variable names and attributes according to your specific use case. Happy Mendix development! 😊
in a microflow u can do this
hoursBetween($startTime,$endTime) + ' Hours'
Between Date Function Calls | Mendix Documentation
Hope it heps