> ## Documentation Index
> Fetch the complete documentation index at: https://help.pelion.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Represent dates and times

> Format date and time values in the Pelion Portal API using the ISO 8601 standard.

Format dates and times in the API using the [International Organization for Standardization (ISO) 8601](https://www.iso.org/iso-8601-date-and-time-format.html) standard. ISO 8601 is a standardized way to represent dates and times that eliminates ambiguity when communicating internationally.

> [!NOTE]
>
> If your API call includes a date and time, you must use the ISO 8601 format.

ISO 8601 uses the structure: `YYYY-MM-ddTHH:mm:ss.ss±hh:mm`

For example, 17:19:57 hours (GMT) on the 9th of January 2019 is represented as: `2019-01-09T17:19:57Z`

## ISO 8601 formatting symbols

The following table describes the symbols used in the ISO 8601 format.

| Symbol | Description | Accepted values | Example |
| - | - | - | - |
| `YYYY` | A four-digit year as part of a date | | `2019` |
| `MM` | A two-digit month as part of a date | `01` - `12` | `12` |
| `dd` | A two-digit day as part of a date | `01` - `31` | `30` |
| `T` | Indicates that a time value follows | All values with a time must begin with a T | `T` |
| `HH` | A two-digit hour as part of a time | `00` - `24` | `17` |
| `mm` | A two-digit minute as part of a time | `00` - `59` | `59` |
| `ss` | A two-digit second as part of a time | `00` - `59` | `59` |
| `±` | The offset from the Greenwich time zone. `+` represents the time zone offset to the east of Greenwich. `-` represents the time zone offset to the west of Greenwich. If the time zone is Greenwich, this value is `Z`. | `+`, `-` or `Z` | `+` |
| `hh` | A two-digit hour as part of the time zone offset | `00` - `14` | `01` |
| `mm` | A two-digit minute as part of the time zone offset | `00` - `59` | `00` |

## Examples of how to represent date and time

The following examples show how to represent date and time in the ISO 8601 format.

| Date and time | ISO 8601 example |
| - | - |
| 17:19:57 hours (GMT) on the 9th of January 2019 | `2019-01-09T17:19:57Z` |
| 17:19:57 hours (Greenwich +1) on the 9th of January 2019 | `2019-01-09T17:19:57+01:00` |
| 17:19:57 hours (Greenwich -1) on the 9th of January 2019 | `2019-01-09T17:19:57-01:00` |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.