I have a number field that I need to convert to minutes and seconds my field 127 need to convert to 2:07 I have tried many things, surely there is a simple answer??
In Crystal 8.5, you can
a) Divide second by 60, in a formula field
b) Truncate the answer to get minutes
c) Multiply the minutes by 60, and subtract from seconds. This gives you the spare seconds.
Do in formula fields. Something like
@Minutes
truncate({seconds}/60)
@Seconds
{seconds}-(60*@Minutes)
@MinSec
totext(@Minutes) & ":" & totext(@Seconds)
Thanks Mike, that worked and was quick and simple, seems there are so many different ways to do this for what would appear to be a simple conversion.. Your formula did the trick.. !!!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.