touch - date format

Oct 18, 2008
345
2
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
12,425
153
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.
 

Similar threads

Replies
6
Views
2K
Replies
2
Views
1K