touch - date format

Oct 18, 2008
277
1
Hello -- is the format for the /D switch for touch the same as would be displayed
with echo %_date

Can the date format be set/altered?
 

rconn

Administrator
Staff member
May 14, 2008
11,106
99
If you want it to work anywhere other than on your local machine with your local settings, you should always use the yyyy-mm-dd (ISO) format. Otherwise, TOUCH will try to guess the date format based on what you entered. But that's not particularly reliable when you have mm-dd-yy vs. dd-mm-yy.

You cannot specify a different date format on the fly with TOUCH.