touch - date format

Oct 18, 2008
346
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,556
167
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
3K
Replies
2
Views
1K