Hi
How can I convert a decimal number of hours (e.g. 1.25) to hours and minutes (e.g. 1:15)?
Bobby C
Convert decimal hours to HH:MM
-
- Posts: 1
- Joined: Fri May 01, 2020 9:35 am
-
- Posts: 6265
- Joined: Tue Mar 20, 2018 5:34 am
Re: Convert decimal hours to HH:MM
Hello,
Please try to use TimeSpan.FromMinutes() method.
https://docs.microsoft.com/en-us/dotnet ... mework-4.8
Thank you.
Please try to use TimeSpan.FromMinutes() method.
https://docs.microsoft.com/en-us/dotnet ... mework-4.8
Thank you.