I am trying to create a batch file to backup my data at regular intervals in Windows using a batch script.
I need date parameter and the fields from the displayed format (Month, day and year). everything works fine when I am using delimiters initially. But when I change the date format from
yyyy-mm-dd everything fails.
So is there any generic format to extract the fields(
mm,dd,yyyy) even-though the format varies.