Hi Ramya,
You could create a date time variable, for example 2023-01-01 00:00 and add the hours from your decimal variable by using the function addHours(). The next step is to format your datetime variable as a string and use the function parseDateTime(HH:mm) to get the hours and minutes form your datetime variable.
Hope this helps!
Hi Ramya,
the result is a decimal of hours between two DateTime attributes.
So for example:
Start (DateTime) 2023-02-28 13:30 and End (DateTime) 2023-02-28 16:00 would result in a decimal (2.5 hours) when using hoursBetween.
If you need a string in the format HH:mm you could do something like this:
Hope this helps!
Cheers,
Jan
PS:
I have put all of this in single steps to make it more understandable. You can also combine all of that in one step as well. See below: