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.

Another way to use Emacs to convert DOS/Unix line endings

I've [previously blogged]({{ site.base_url }}{% post_url 2016-12-13-converting-files-from-dos-to-unix-file-formats-using-emacs %}) about ...… Continue reading