Convert float to hours and minutes in SQL report builder

I would like to convert a float value to hours and minutes in SQL report builder, so 0.02083333 would become 0:30
Am sure this can be achieved in prior to report builder but bout like in report builder.

Any help appreciated.

Best regards
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Doug BishopDatabase DeveloperCommented:
I am not certain if it can be done with a single convert.

If you are using SQL Server 2008 R2 or higher, use: SELECT CAST(CAST(0.02083333 AS DATETIME) AS TIME(0))
For something less than 2008 R2, use CONVERT(VARCHAR(10), CONVERT(DATETIME, 0.02083333), 108).

Also note that CONVERT() will truncate the value. 0.02083333 is actually 00:29:59.997 and will display 00:29:59. Using TIME(0) in a CAST will round to 00:30:00.
Nico BontenbalCommented:
If you set the expression in SSRS to:
=timeserial(0,0, round(0.02083333*24*60*60))

Open in new window

And the format to H:mm
You'll get 0:30.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.