---
title: "What is the \"right\" JSON date format?"  
description: "What is the \"right\" JSON date format?"  
author: "Utpal Vishwas"  
published: 2023-05-11  
updated: 2023-05-15  
canonical: https://www.mindstick.com/forum/158271/what-is-the-right-json-date-format  
category: "json"  
tags: ["json", "format"]  
reading_time: 2 minutes  

---

# What is the "right" JSON date format?

What is the "[right](https://www.mindstick.com/articles/12766/check-whether-you-are-doing-digital-transformation-right-or-not)" [JSON](https://www.mindstick.com/forum/34446/convert-json-string-to-object) [date format](https://www.mindstick.com/forum/1976/date-format-comparison-issue)?

## Replies

### Reply by Aryan Kumar

There is no one "right" JSON [date](https://yourviews.mindstick.com/story/3869/propose-day-2024-exciting-date-ideas-for-you-and-your-partner) [format](https://www.mindstick.com/forum/162083/how-to-convert-ost-files-into-pst-format). However, the most common and recommended format is the ISO 8601 format. The ISO 8601 format is a standard format for representing dates and times. It is widely used in the computer industry and is supported by most JSON parsers.

The ISO 8601 format for dates is as follows:

Code snippet

```plaintext
YYYY-MM-DD
```

For example, the date "May 15, 2023" would be represented in the ISO 8601 format as follows:

Code snippet

```plaintext
2023-05-15
```

The ISO 8601 format for times is as follows:

Code snippet

```plaintext
HH:mm:ss.SSS
```

For example, the time "12:00:00.000" would be represented in the ISO 8601 format as follows:

Code snippet

```plaintext
12:00:00.000
```

The ISO 8601 format for dates and times is as follows:

Code snippet

```plaintext
YYYY-MM-DDTHH:mm:ss.SSSZ
```

For example, the date and time "May 15, 2023 at 12:00:00.000 UTC" would be represented in the ISO 8601 format as follows:

Code snippet

```plaintext
2023-05-15T12:00:00.000Z
```

The ISO 8601 format is a human-readable and machine-readable format. It is also a widely used format, which makes it easy to exchange data with other systems.


---

Original Source: https://www.mindstick.com/forum/158271/what-is-the-right-json-date-format

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
