Dainis Abols Dainis Abols - 1 year ago 89
PHP Question

What ISO date format is this?

I could not locate this format, can you tell me please what ISO format is this?


I need to recreate this in PHP.

It is similar to ISO-8601 (
) but the ending is different.

Answer Source

It still is ISO 8601, but there are different versions for this available. Check the W3C about this. There are 6 different versions:

  YYYY (eg 1997)
Year and month:
  YYYY-MM (eg 1997-07)
Complete date:
  YYYY-MM-DD (eg 1997-07-16)
Complete date plus hours and minutes:
  YYYY-MM-DDThh:mmTZD (eg 1997-07-16T19:20+01:00)
Complete date plus hours, minutes and seconds:
  YYYY-MM-DDThh:mm:ssTZD (eg 1997-07-16T19:20:30+01:00)
Complete date plus hours, minutes, seconds and a decimal fraction of a second
  YYYY-MM-DDThh:mm:ss.sTZD (eg 1997-07-16T19:20:30.45+01:00)
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download