Search This Blog

Saturday, May 30, 2009

Parse Date in Batch

FOR /F "tokens=2-4 delims=/ " %%1 IN ('DATE /T') DO (
SET MONTH=%%1
SET DAY=%%2
SET YEAR=%%3
)

No comments: