Hi All,
I have a script that adds the date/time stamp to a file in the following format:
200701120149PM.
here is the script:
set dttm=%~t1
for /F "tokens=1-6 delims=/: " %%i in ("%dttm%") do (
set date=%%k%%i%%j%%l%%m
)
I need to display the time as military. How can I do that?
Thanks.What is that?
Can't you use T-SQL?
What's the table definition (DDL) look like?|||This is a DOS command that displays the system date/time.
What table are you refering to?|||Well, since this is a MS SQL Server forum, you might want to ask a question about that, othwerwise, there might be another board that can help you out with DOS|||Definitely the wrong forum for this question. Nevertheless, I think the answer may depend on your regional settings; when I run it, the output is fine (ie, no AM/PM, just a military hour).
This site (http://www.robvanderwoude.com/index.html)has some good stuff on DOS scripts...
Regards,
hmscott
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment