-
1
- #1
I have had a very bad day with Crystal (an unrelated export issue) and I really need some help because now I am frusterated . Basically I have a time field that is stored as a number. The values range from 838.00, 1,763.00, 936.00,etc.
Basically these represent Military time within the SQL database 17:63, 9:36, etc. What I need is a formula that will convert these numbers (I know how to display them without .00 and ","'s so I have 1763, 838, etc.) into a standard AM/PM time. So basically, first convert to a valid Time, and then into a valid AM/PM time. I need this because at run-time an automated script will be comparing this time to another valid time found in a .log file, so I can not use a picture() command or simply parse out the string, I need a valid time to compare with.
Every formula I have tried has produced the same error..."An hour must be within 0 and 23"..I have used some of the examples found on this forum, with the same results. Can anyone help. I am decently fluent in Crystal, but today has been bad and I need some relief! Thanks to everyone for their help.
Basically these represent Military time within the SQL database 17:63, 9:36, etc. What I need is a formula that will convert these numbers (I know how to display them without .00 and ","'s so I have 1763, 838, etc.) into a standard AM/PM time. So basically, first convert to a valid Time, and then into a valid AM/PM time. I need this because at run-time an automated script will be comparing this time to another valid time found in a .log file, so I can not use a picture() command or simply parse out the string, I need a valid time to compare with.
Every formula I have tried has produced the same error..."An hour must be within 0 and 23"..I have used some of the examples found on this forum, with the same results. Can anyone help. I am decently fluent in Crystal, but today has been bad and I need some relief! Thanks to everyone for their help.