Jump to content

This topic is 8208 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies
Posted

I need to convert a user-entered number formatted as "1.25" to time as "1:30" for time billing purposes. The entry field is numeric, and my calc field is time using "TextToTime(number_entered)." The result I get only seems to work with values entered as whole numbers (1, 2, 3). When the decimal value is entered the calc field does not display any value, regardless of its length or how it is formatted. Any suggestions?

Thanks,

Mike

Posted

>I need to convert a user-entered number formatted as "1.25" to time

>my calc field is time using "TextToTime(number_entered)."

Ummmm. I haven't checked this out, but shouldn't the field containing "1.25" be formatted as a text field since you are converting "Text to Time"? And of course you have the calculation Result is Time.

  • Newbies
Posted

I tried changing it to a text field, but still get the same result, i.e. only works when whole number are entered.

The strange thing is I know I've gotten this to work before...

Mike

Posted

If you're entering your time as hours and decimals hours, why not have it entered into a number field "Number_Input" and then use this calc (time result) to convert it to time format:

Display_Time = Time(Number_Input,0,0)

This will convert 1.25 hours into 1:15:00

If you want to send me an email, I can return a demo with some other handy time calcs in it...

This topic is 8208 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.