# ISO Date Conversion

**URL:** <https://forum.inductiveautomation.com/t/iso-date-conversion/52663>\
**Category:** Ignition\
**Created:** [November 3, 2021, 11:53am UTC](https://forum.inductiveautomation.com/t/iso-date-conversion/52663 "2021-11-03T11:53:31Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![damean.thomas](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/damean.thomas/32/11367_2.png) [@damean.thomas](https://forum.inductiveautomation.com/u/damean.thomas)\
**Post date:** [November 3, 2021, 11:53am UTC](https://forum.inductiveautomation.com/t/iso-date-conversion/52663/1 "2021-11-03T11:53:31Z")

</div>

Is there a way in Ignition to convert the date to ISO

```auto
10/31/21, 7:44:28 AM >>> 2021-12-21T00:00:00-06:00

```

---

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [November 3, 2021, 12:17pm UTC](https://forum.inductiveautomation.com/t/iso-date-conversion/52663/2 "2021-11-03T12:17:57Z")

</div>

Do you mean as a sting? If so, the format would be:  
`"yyyy-MM-dd'T'HH:mm:ssZ"`

---

<div class="post-metadata">

**Author:** ![damean.thomas](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/damean.thomas/32/11367_2.png) [@damean.thomas](https://forum.inductiveautomation.com/u/damean.thomas)\
**Post date:** [November 3, 2021, 9:27pm UTC](https://forum.inductiveautomation.com/t/iso-date-conversion/52663/3 "2021-11-03T21:27:57Z")

</div>

I am using `dateFormat(dateArithmetic(toDate(now(0)), -3, "days"), "yyyy-MM-dd")` to get the date get the date from three days previous, but i need it ISO format to pass in an http binding. I am trying to parametrize a date for an api request but it needs to be in ISO. For now I am using a transform to add the time portion for midnight; I thought there might be a better way to go about this.

---

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [November 3, 2021, 10:11pm UTC](https://forum.inductiveautomation.com/t/iso-date-conversion/52663/4 "2021-11-03T22:11:46Z")

</div>

Try `"yyyy-MM-dd'T'00:00:00Z"`

---

<div class="post-metadata">

**Author:** ![damean.thomas](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/damean.thomas/32/11367_2.png) [@damean.thomas](https://forum.inductiveautomation.com/u/damean.thomas)\
**Post date:** [November 5, 2021, 12:43am UTC](https://forum.inductiveautomation.com/t/iso-date-conversion/52663/5 "2021-11-05T00:43:07Z")

</div>

Thank you, I didn’t see that as an option in the documentation. I thought that there were strict patterns.
