Return to Snippet

Revision: 10130
at December 9, 2008 11:14 by goo


Initial Code
FOR /F "TOKENS=1,2 DELIMS=/ " %%A IN ('DATE /T') DO SET mm=%%B
FOR /F "TOKENS=2,3 DELIMS=/ " %%A IN ('DATE /T') DO SET dd=%%B
FOR /F "TOKENS=3* DELIMS=/ " %%A IN ('DATE /T') DO SET yyyy=%%B

set /A dd=%dd%-3

set Pdate=%mm%/%dd%/%yyyy%
echo %Pdate%

Initial URL
http://www.tech-recipes.com/rx/956/windows-batch-file-bat-to-get-current-date-in-mmddyyyy-format/

Initial Description

                                

Initial Title
BATCH - Formato de la FECHA

Initial Tags

                                

Initial Language
Bash