touch - date format

Oct 18, 2008
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?


Staff member
May 14, 2008
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.
Thread starter Similar threads Forum Replies Date
vefatica Support 2
Dick Johnson Support 10
Dick Johnson Support 0
fpefpe Support 1
fpefpe Support 6