I need to get today date in Window *.bat file. After it I would like to get day, month and year. How can I do this? I can\'t use PowerShell
*.bat
You get and format like this
for /f "tokens=1-4 delims=/ " %%i in ("%date%") do ( set dow=%%i set month=%%j set day=%%k set year=%%l ) set datestr=%month%_%day%_%year% echo datestr is %datestr%