I am using a post processing command to copy one file to another file with a date stamp at the end of the file name. I found an example of adding the date stamp, but it adds the date stamp in the wrong format. Currently, the date stamp is in the format:
But, I need the date format to be in:
Here is the command I'm using:
copy c:\Users\UserName\Desktop\TemplateFile.txt c:\Users\UserName\Desktop\FileName_%date:~-4,4%%date:~-7,2%%date:~-10,2%.txt
I just need to switch the month and day in the date stamp.
Thanks for any help.