merlynsdad
Programmer
I'm working with an Oracle db that handles times strangely. First of all, it uses number types, so that 10:20:25 AM is equal to 102025. I can convert anything after 10AM ok because the number contains 6 digits and I have a SQL clause to do that:
& "FormatDateTime(TimeSerial(left(" & QryLoc & "_DTA_AAC_EVENT.time_stamp,2), mid(" & QryLoc & "_DTA_AAC_EVENT.time_stamp,3,2),right(" & QryLoc & "_DTA_AAC_EVENT.time_stamp,2)),3)AS [time_stamp]," _
Prior to 10AM, however, the db drops leading zeros on the numbers. 7:30:45AM is thus 73045, 12:30:45AM is 3045, 12:00:45 is 45, all the way to 12:00:01 which is 1.
How do I add leading zeroes back on these numbers?
If the square peg won't fit in the round hole, sand off the corners.
& "FormatDateTime(TimeSerial(left(" & QryLoc & "_DTA_AAC_EVENT.time_stamp,2), mid(" & QryLoc & "_DTA_AAC_EVENT.time_stamp,3,2),right(" & QryLoc & "_DTA_AAC_EVENT.time_stamp,2)),3)AS [time_stamp]," _
Prior to 10AM, however, the db drops leading zeros on the numbers. 7:30:45AM is thus 73045, 12:30:45AM is 3045, 12:00:45 is 45, all the way to 12:00:01 which is 1.
How do I add leading zeroes back on these numbers?
If the square peg won't fit in the round hole, sand off the corners.