I just had the pleasure to do exactly that in a batch file. Some poking around technet gave me the following:
%date:~-4,4%%date:~4,2%%date:~-7,2%</pre>
This will create an ISO-style date format out of a date in US locale settings.
The continued diary of an experienced C++ programmer. Thoughts on C++ and other languages I play with, Emacs, functional, non functional and sometimes non-functioning programming.
I just had the pleasure to do exactly that in a batch file. Some poking around technet gave me the following:
%date:~-4,4%%date:~4,2%%date:~-7,2%</pre>
This will create an ISO-style date format out of a date in US locale settings.