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.

Can you get a deadlock with a single lock and an IO operation?

Quite a while ago, I answered a question about [the basic deadlock scenario](https://stackoverflow.com/questions/17252441/can-someone-ple...… Continue reading