# Proper UTC date format for datetime field?

**URL:** <https://community.fibery.io/t/proper-utc-date-format-for-datetime-field/6404>\
**Category:** Get Help\
**Created:** [July 16, 2024, 9:06pm UTC](https://community.fibery.io/t/proper-utc-date-format-for-datetime-field/6404 "2024-07-16T21:06:27Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![interr0bangr](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/interr0bangr/32/8089_2.png) [@interr0bangr](https://community.fibery.io/u/interr0bangr)\
**Post date:** [July 16, 2024, 9:06pm UTC](https://community.fibery.io/t/proper-utc-date-format-for-datetime-field/6404/1 "2024-07-16T21:06:27Z")

</div>

Trying to send a datetime value to fibery via the api but get the following error response:

> Invalid format: "2024-07-16T17:02.030Z" is malformed at "T17:02.030Z"

Here’s the value I’m sending:

> 2024-07-16T17:02.030Z

Could someone help me understand what I’m doing wrong? All the documentation says UTC is the format Fibery accepts?

---

<div class="post-metadata">

**Author:** ![Matt\_Blais](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/matt_blais/32/1464_2.png) [@Matt\_Blais](https://community.fibery.io/u/Matt_Blais)\
**Post date:** [July 16, 2024, 9:07pm UTC](https://community.fibery.io/t/proper-utc-date-format-for-datetime-field/6404/2 "2024-07-16T21:07:53Z")

</div>

Try it with no seconds - e.g. `2024-07-16T17:02Z`  
or like this with no ms: `2022-01-01T08:00:00Z`

---

<div class="post-metadata">

**Author:** ![interr0bangr](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/interr0bangr/32/8089_2.png) [@interr0bangr](https://community.fibery.io/u/interr0bangr)\
**Post date:** [July 16, 2024, 9:22pm UTC](https://community.fibery.io/t/proper-utc-date-format-for-datetime-field/6404/3 "2024-07-16T21:22:01Z")

</div>

Thanks, but still getting the same error for both. ☹

"Invalid format: "2024-07-16T17:18Z" is malformed at "T17:18Z"  
“Invalid format: "2024-07-16T17:00:00Z" is malformed at "T17:00:00Z”

---

<div class="post-metadata">

**Author:** ![interr0bangr](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/interr0bangr/32/8089_2.png) [@interr0bangr](https://community.fibery.io/u/interr0bangr)\
**Post date:** [July 16, 2024, 9:40pm UTC](https://community.fibery.io/t/proper-utc-date-format-for-datetime-field/6404/4 "2024-07-16T21:40:28Z")

</div>

Finally figured it out, if anyone else ever needs help with this!

YYYY-MM-DD **T** HH:MM:SS.mmm **Z**  
also known as  
YEAR-MONTH-DAY **T** :HOUR:MINUTE:SECOND:MILLISECOND **Z**

Example:  
2024-07-16T17:15:37.561Z

---

<div class="post-metadata">

**Author:** ![Chr1sG](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/chr1sg/32/3941_2.png) [@Chr1sG](https://community.fibery.io/u/Chr1sG)\
**Post date:** [July 17, 2024, 5:43am UTC](https://community.fibery.io/t/proper-utc-date-format-for-datetime-field/6404/5 "2024-07-17T05:43:51Z")

</div>

> **[ISO 8601](https://en.m.wikipedia.org/wiki/ISO_8601)**
>
> 2024-07-17T05:24:08+00:00 UTC+00:00 \[refresh\]
> ISO 8601 is an international standard covering the worldwide exchange and communication of date and time-related data. It is maintained by the International Organization for Standardization (ISO) and was first published in 1988, with updates in 1991, 2000, 2004, and 2019, and an amendment in 2022. The standard provides a well-defined, unambiguous method of representing calendar dates and times in worldwide communications, especially to avoid misinter...
