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
NSLOOKUP
Divide Records By Date
Allow users to change password using IIS
I have created a global distribution group - it opos up twice in the GAL - one is the group that shows the contacts - but it shows another exact name of the group (there is only one ion AD) with NO us
MS Access - First and Last Name field into Full Name
how can I override the DateTime class to add a custom method??
Automatically run an application as another user
ms office oem vs licensing
CTFMON_AU.EXE cannot get rid of --- a danger?
refreshing listbox value