Page 1 of 1

Convert decimal hours to HH:MM

Posted: Fri May 01, 2020 9:46 am
by BobbyChariot
Hi

How can I convert a decimal number of hours (e.g. 1.25) to hours and minutes (e.g. 1:15)?

Bobby C

Re: Convert decimal hours to HH:MM

Posted: Mon May 04, 2020 10:09 am
by Lech Kulikowski
Hello,

Please try to use TimeSpan.FromMinutes() method.
https://docs.microsoft.com/en-us/dotnet ... mework-4.8

Thank you.