|but who uses copy con any more use edit.|
Sadly, I use the x64 builds, so no 16-bit tools for me.
COPY CON -> Right-Click -> Paste -> F6 -> Enter is faster than Notepad if you already have the Command Prompt up.
For the record, I generally use Notepad++. Syntax highlighting makes things so pretty.
P.S. All this does...
...Is complain about the "then" and add a 0? :P To be fair, I make the same mistake all the time, and I didn't notice it either until I ran your script.
Really, there's no nice way to separate the date in CMD. VBS can do it, JScript can do it, Powershell can do it, Bash can do it, but not CMD. Oh well, maybe in Windows 8?
EDIT: My preferred method of padding:
How To Ask Questions The Smart Way