1 2 3 4 5 6 |
@echo off for /f "tokens=1-4 delims=- " %%a in ('date/t') do (set dia=%%a& set mes=%%b& set ano=%%c) set fecha=%dia%-%mes%-%ano% echo %fecha% pause exit |
1 2 3 4 5 6 |
@echo off for /f "tokens=1-4 delims=- " %%a in ('date/t') do (set dia=%%a& set mes=%%b& set ano=%%c) set fecha=%dia%-%mes%-%ano% echo %fecha% pause exit |