A bird does not sing because she has an answer. She sings because she has a song.
FOR /F "usebackq tokens=1,2,3,4 delims=/ " %%i IN (`date /t`) DO (set yyyymmdd=%%l%%j%%k)
Almost.. got k and j mixed up there.FOR /F "usebackq tokens=1,2,3,4 delims=/ " %%i IN (`date /t`) DO (set yyyymmdd=%%l%%k%%j)
I think it depends on your Region and Language setting of your OS, date /t can be showing mm/dd/yyyy or dd/mm/yyyy.
Post a Comment
2 comments:
Almost.. got k and j mixed up there.
FOR /F "usebackq tokens=1,2,3,4 delims=/ " %%i IN (`date /t`) DO (set yyyymmdd=%%l%%k%%j)
I think it depends on your Region and Language setting of your OS, date /t can be showing mm/dd/yyyy or dd/mm/yyyy.
Post a Comment