Thursday 15 May 2014

windows - How to get the current date formatted through Cmd prompt -



windows - How to get the current date formatted through Cmd prompt -

this question has reply here:

windows batch: formatted date variable 9 answers

how alter date format of today's date in command prompt trying fetch current date using %date% want format date yyyy-mm-dd.

to formatting want, need parse output.

for /f "tokens=2-4 delims=/ " %i in ('date /t') echo %k-%i-%j

windows cmd dos

No comments:

Post a Comment