Hello,
How can I convert time HH:MM format to decimal format ?
for ex
3:00 to 3
3:15 to 3.25
3:30 to 3.5
3:45 to 3.75
Can any one help?
Hello,
How can I convert time HH:MM format to decimal format ?
for ex
3:00 to 3
3:15 to 3.25
3:30 to 3.5
3:45 to 3.75
Can any one help?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Pasang TamangPosted Dec 30, 2022, 7:08 AM
Hi Deepak,
You can use DATEPART function to extract hour and minute separately and make the calculation. Check below SQL code for your reference.
Regards,
Pasang
Amit MohantyPosted Dec 30, 2022, 6:48 AM
Check this