convert time duration in decimal.

Hello Everyone,

please help me to get value on period start and period end time.

i have to get value like below format. 

00:00-12:59 as 00

03:00-03:59 as 03

19:00-19:59 as 19 

for 24 hour time period.

 

Thanks in advance.

Related
Recommended