0
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 dd-mm-yyyy
to yyyy-mm-dd
everything fails.
So is there any generic format to extract the fields(mm,dd,yyyy
) even-though the format varies.
Thanks.
2This is hard to follow as-is, Can you post the batch code you have so far? – Ƭᴇcʜιᴇ007 – 2013-03-29T20:21:08.127
I do believe there is a similar question on [so], I just can't find it yet. – BDM – 2013-03-30T09:12:41.200
While it might be possible to cook something up (which will no doubt make your batch files even more complex unnecessarily), how often do you need to change your system's date format in Control Panel anyway? – Karan – 2013-03-31T15:12:58.757