1.

Solve : Date/Tiem formatting?

Answer»

Is it possible in MS DOS to get the date/TIME as STRINGS for appending to filenames? I really cannot find any information on this ANYWHERE. I know how to do it in UNIX but no clue as to what (if any) parameters there are. TIA!Nevermind, I figured this out based on a post below:

SET LOGDATE=%date:~10,4%%date:~4,2%%date:~7,2%%time:~0,2%%time:~3,2%%time:~6,2%

Returns: 20050714HHMMSS



Discussion

No Comment Found