Microsoft
Software
Hardware
Network
Question : add a zero to a number...
I get the time from a field (the time comes as numeric). it is militarty time, when it's before 1200 it drops the 0. ie; 073502 is 73502
well when I use STUFF() to put in the ":" the under 1200 ends up being wrong... instead of 7:35:02 it will be 73:50:2
what is the best way to get a zero in there?
or a set something on?
thanks
Answer : add a zero to a number...
Use TRANSFORM if the input value is really numeric:
? TRANSFORM(73502, "@L 99:99:99")
If the vaule is character then you may convert it by VAL() function:
? TRANSFORM(VAL("73502"), "@L 99:99:99")
Random Solutions
Recurring appointment creator no longer exists - how can I change the owner?
Mount new FAT partition in DOS without reboot?
2008 TS Web Access: Expiring Password Reminder?
Dialog Box to ask questions to get new users to identify their pathway to various files being used in macro program
Excel 2007 Formula Question
Retrieve Dataset from Database and Bind to a Collection and Silverlight Control
Terminal Server - Remove Server Manager Pinned to Start Menu
Count records in subform meeting criteria
Draw gradient on panel control
How do I get the Date() to begin at 07:00 instead of 00:00