Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Showing "short time"

Status
Not open for further replies.

air1jcw

Technical User
Jan 23, 2003
30
US
I have a field that is of "number" data type. The data shows up as 123. I need to show the data as 01:23. I cannot not change the data type because the data is transfered from a .txt file. Changing the data type corrupts the data. Some of the data shows up as 1256. Whick I need for it to show as 12:56 (Military Time). Can somebody help me out??

Thanks
air1jcw
 
left(right('000' & cstr(data),4),2) & ':' &
right(right('000' & cstr(data),4),2)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top