windows - How to get the current date formatted through Cmd prompt -
this question has reply here:
windows batch: formatted date variable 9 answershow 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