0

In a string, ISO8601 dictates a date be represented YYYY-MM-DD.

I have previously used YYYYMMDD, and in filenames have specified a date range as YYYYMMDD-YYYYMMDD.

With the date including a hyphen now, that way doesn't work, or atleast is unclear. Does anyone know of the 'correct' way to specify a date range in the ISO8601 format, e.g. something like YYYY-MM-DD-YYYY-MM-DD?

Thanks, Alexander

  • 1
    Related: https://stackoverflow.com/q/20413843/10197418 – FObersteiner Jul 01 '22 at 06:53
  • @FObersteiner perfect, thank you ! shame about the forward slash because it can't be used in filenames, but a comment suggests just a double hyphen. [sidenote, what am I supposed to do now with this question? I can't mark a comment as a solution, is there a way to simply close it?] – AlexRussell Jul 01 '22 at 09:44
  • glad you found a solution. I can dupe-flag it, I don't know if you can close it yourself. – FObersteiner Jul 01 '22 at 09:54
  • perfect, whatever you just did gave me pop up to say that link answers this question. it's now closed. cheers – AlexRussell Jul 02 '22 at 10:06

0 Answers0