# Support for ISO 8601 formatted dates in API workflows

**URL:** <https://forum.bubble.io/t/support-for-iso-8601-formatted-dates-in-api-workflows/17472>\
**Category:** Idea\
**Created:** [September 10, 2017, 2:59pm UTC](https://forum.bubble.io/t/support-for-iso-8601-formatted-dates-in-api-workflows/17472 "2017-09-10T14:59:19Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![collegefund.me](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/collegefund.me/32/11688_2.png) [@collegefund.me](https://forum.bubble.io/u/collegefund.me)\
**Post date:** [September 10, 2017, 2:59pm UTC](https://forum.bubble.io/t/support-for-iso-8601-formatted-dates-in-api-workflows/17472/1 "2017-09-10T14:59:19Z")

</div>

@Bubble - Can you please add support for ISO 8601 formatted dates in API workflows? Bubble currently treats these as strings, and it obviously would be ideal to store this data in date type fields.

![image](https://us1.discourse-cdn.com/bubble/original/2X/d/dec56c92f58369093b46202381bd381ed2d5635f.png)

A couple examples of these dates are:

```
  "expected_delivery_date": "2017-09-12",
  "date_modified": "2017-09-05T17:47:53.896Z",

```

Is there an existing workaround that I may not be aware?

Thanks!

---

<div class="post-metadata">

**Author:** ![Kfawcett](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/kfawcett/32/38097_2.png) [@Kfawcett](https://forum.bubble.io/u/Kfawcett)\
**Post date:** [November 13, 2017, 1:37am UTC](https://forum.bubble.io/t/support-for-iso-8601-formatted-dates-in-api-workflows/17472/2 "2017-11-13T01:37:07Z")

</div>

@josh @emmanuel I’m running into the same problem. I’m only able to import the date as text. Bubble is not recognizing ISO 8601 date/time formats as dates.

This is an example of the field coming in from an API that Bubble is identifying as text instead of a date.  
“createdDateTime”: “2017-11-11T16:44:45Z”,

---

<div class="post-metadata">

**Author:** ![Kfawcett](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/kfawcett/32/38097_2.png) [@Kfawcett](https://forum.bubble.io/u/Kfawcett)\
**Post date:** [November 14, 2017, 9:04pm UTC](https://forum.bubble.io/t/support-for-iso-8601-formatted-dates-in-api-workflows/17472/3 "2017-11-14T21:04:05Z")

</div>

I figured this out. I needed to update the data types from text to date when setting up the API calls.

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/f/e/fe6c94a19d0f052558ce88012c25709a7b4df9d6.png)

After that I could format the text field to display in the correct timezone for the user.

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/a/8/a80e92a3a3447ae5ba83f3162798e15f4a02a09f.png)

---

<div class="post-metadata">

**Author:** ![keith](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/keith/32/56020_2.png) [@keith](https://forum.bubble.io/u/keith)\
**Post date:** [April 22, 2018, 9:21am UTC](https://forum.bubble.io/t/support-for-iso-8601-formatted-dates-in-api-workflows/17472/4 "2018-04-22T09:21:54Z")

</div>

I have a huge need for this. Have an api that returns dates in YYYYMMDD but Bubble refuses to recognize that as a date. So my database is stuck with string objects. Grrr.

Bubble is node.js, right? Why not just include moment.js so the API connector can let us force Bubble to understand our API return values???

Halp!!

---

<div class="post-metadata">

**Author:** ![keith](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/keith/32/56020_2.png) [@keith](https://forum.bubble.io/u/keith)\
**Post date:** [April 22, 2018, 9:29am UTC](https://forum.bubble.io/t/support-for-iso-8601-formatted-dates-in-api-workflows/17472/5 "2018-04-22T09:29:01Z")

</div>

Now that I’ve thought about this more, I’m actually furious… it’s pretty obvious that the “date:format as” functions are powered by moment. But moment also does the converse, right? AAAARGH. Let us convert text to dates!!!
