1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

touch - date format

Discussion in 'Support' started by fpefpe, Apr 15, 2017.

  1. fpefpe

    Joined:
    Oct 18, 2008
    Messages:
    241
    Likes Received:
    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?
     
  2. Charles Dye

    Charles Dye Super Moderator
    Staff Member

    Joined:
    May 20, 2008
    Messages:
    3,286
    Likes Received:
    39
    I think it's the just the local short date format. But you can always enter dates in ISO8601 format, regardless of your locale.
     
  3. rconn

    rconn Administrator
    Staff Member

    Joined:
    May 14, 2008
    Messages:
    9,812
    Likes Received:
    82
    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.
     

Share This Page