From the course: Java with JSON

Unlock this course with a free trial

Join today to access over 25,300 courses taught by industry experts.

ISO 8601

ISO 8601

- [Instructor] Similar to how you may not have a choice in how fields are named, you may also not have a choice when it comes to the format of date time data. For instance, the format that a particular date time is written in can vary from application to application. One application could work with date time like this, another one like this, and another one like this. The GitHub API communicates date time like this. All of these, different as they may seem, are written using the ISO 8601 format. ISO 8601 is an internationally accepted standard for writing dates and times. JSON knows how to work with the ISO 8601 standard and we can use this standard to tell it how the date time values in our JSON should be formatted.

Contents