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.

Sorry for the disruption, normal service will resume shortly

My apologies for the sudden instability of my blog. I've managed to make a hash of an update on the main Wordpress site when I tried to u...… Continue reading