# How to add date/time using API

**URL:** <https://community.glideapps.com/t/how-to-add-date-time-using-api/48233>\
**Category:** Ask for Help\
**Created:** [August 31, 2022, 8:17pm UTC](https://community.glideapps.com/t/how-to-add-date-time-using-api/48233 "2022-08-31T20:17:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ryan\_Roman](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/ryan_roman/32/46396_2.png) [@Ryan\_Roman](https://community.glideapps.com/u/Ryan_Roman)\
**Post date:** [August 31, 2022, 8:17pm UTC](https://community.glideapps.com/t/how-to-add-date-time-using-api/48233/1 "2022-08-31T20:17:59Z")

</div>

I’m using Javascript axios to add a new row into my Glide table and everything gets added properly besides the date/time cell. The date/time cell is **Date & Time** type.

I have tried all of these values for the date/time cell and none have worked:

- `new Date()`
- `"8/30/2022 10:31:00"`
- `"2022-08-31 03:22"`
- `"2022/01/09 12:04:43"`
- `"2022-08-31"`
- `"8/31/2022 8:13am"`

Loom video for overview of my problem → [link](https://www.loom.com/share/01f86a5f3dad4eacb8ef1f24f22a07a8)

---

<div class="post-metadata">

**Author:** ![Robert\_Petitto](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/robert_petitto/32/25193_2.png) [@Robert\_Petitto](https://community.glideapps.com/u/Robert_Petitto)\
**Post date:** [August 31, 2022, 9:05pm UTC](https://community.glideapps.com/t/how-to-add-date-time-using-api/48233/2 "2022-08-31T21:05:02Z")

</div>

I’m curious to know what value it places inside of that cell if you change your column type to `text`.

---

<div class="post-metadata">

**Author:** ![Ryan\_Roman](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/ryan_roman/32/46396_2.png) [@Ryan\_Roman](https://community.glideapps.com/u/Ryan_Roman)\
**Post date:** [August 31, 2022, 9:26pm UTC](https://community.glideapps.com/t/how-to-add-date-time-using-api/48233/3 "2022-08-31T21:26:59Z")

</div>

Found what the issue was. The column title for that date/time cell originally was **Response Date** but later I changed it to **New Lead Date**. When I made my POST request to add the new row, I tried adding the date to the column with the name **New Lead Date** instead of **Response Date**. Not sure why the column title didn’t change for the API.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/system/32/53398_2.png) [@system](https://community.glideapps.com/u/system)\
**Post date:** [September 1, 2022, 9:27pm UTC](https://community.glideapps.com/t/how-to-add-date-time-using-api/48233/4 "2022-09-01T21:27:59Z")

</div>

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
