Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

touch - date format

Oct
356
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?
 
I think it's the just the local short date format. But you can always enter dates in ISO8601 format, regardless of your locale.
 
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
2K
Back
Top