Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is this a valid ISO 8601 formatted string?

Is the following date string a currently valid ISO 8601 formatted string?

2016-09-18T17:34:02.666Z

On the wiki for 8601 I don't see this format, however it is specified here.

like image 630
Jon Avatar asked Sep 22 '16 16:09

Jon


People also ask

What is the correct date format for ISO 8601?

10-15-2019 11:09 AM ISO 8601 specifies that the date portion of a Date Time string is always formatted as yyyy-MM-dd. Yours is formatted as dd/MM/yyyy. Switch the order around and you should be fine.

What are the basic principles of ISO 8601?

Basic Principles of the ISO 8601 Standard. The ISO 8601 standard defines an internationally recognized format for representing dates and times. For times, they are expressed with the notation hours-minutes-seconds. In the case of dates, the format is year-month-day.

What is the difference between ISO 8601 and 8601-2?

Issued in February 2019, the fourth revision of the standard ISO 8601-1:2019 represents slightly updated contents of the previous ISO 8601:2004 standard, whereas the new ISO 8601-2:2019 defines various extensions such as uncertainties or parts of the Extended Date/Time Format (EDTF).

What is the ISO 8601 EDTF?

ISO 8601-2:2019 defines a set of standardised extensions to the ISO 8601 date and time formats. The EDTF is given as an example of a profile of ISO 8601. Some of its features are: Uncertain and approximate qualifiers, '?' and '~', as well as their combined used, '%'; they can be applied to the whole date or to individual components.


1 Answers

according to the documentation here: https://www.w3.org/TR/NOTE-datetime The proper formatting is:

 YYYY-MM-DDThh:mm:ssTZD

so yes, it is

like image 177
Unamata Sanatarai Avatar answered Jan 02 '23 08:01

Unamata Sanatarai