0

While answering Regexp matching ISO8601 date/time format I wondered how you express first coming Monday or repeat every monday in ISO8601.

My guess would be something like:

W-1
R/W-1

But I cannot find a confirmation of that.

Ole Tange
  • 31,768
  • 5
  • 86
  • 104
  • You don't. ISO8601 defines timestamps or intervals (durations). If you want to specify thinks like "next monday", you would have to use your own syntax, though that may be based on ISO8601. – Arminius Aug 21 '17 at 21:18

1 Answers1

0

ISO 8601 has the concept of week dates which allow you to specify a week of the year and the day of the year. In the following example 2014-W01-1 means the first week of 2014 on Monday. Then repeat that every week using P1W

R/2014-W01-1T00:00:00/P1W

Seen in this answer

Chris Z
  • 347
  • 1
  • 5