Posted By

samwa on 04/16/11


Tagged

DateTime dos


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

samwa


DOS DateTime


 / Published in: DOS Batch
 

URL: http://stackoverflow.com/questions/203090/how-to-get-current-datetime-on-windows-command-line-in-a-suitable-format-for-usi

  1. REM get uk date
  2. FOR /f "tokens=1-3 delims=/ " %%a IN ('date /t') DO (SET MYDATE=%%c%%b%%a)
  3. echo %MYDATE%

Report this snippet  

You need to login to post a comment.