# Timestamp to UNIX

**URL:** <https://community.glideapps.com/t/timestamp-to-unix/73574>\
**Category:** Ask for Help\
**Created:** [May 22, 2024, 1:58pm UTC](https://community.glideapps.com/t/timestamp-to-unix/73574 "2024-05-22T13:58:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alina](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/alina/32/65894_2.png) [@Alina](https://community.glideapps.com/u/Alina)\
**Post date:** [May 22, 2024, 1:58pm UTC](https://community.glideapps.com/t/timestamp-to-unix/73574/1 "2024-05-22T13:58:04Z")

</div>

Hello dear Gliders!

Please, tell me how to convert timestamp into UNIX format.

Should I use JavaScript for it? And if so, what is the code?

---

<div class="post-metadata">

**Author:** ![Himaladin](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/himaladin/32/71023_2.png) [@Himaladin](https://community.glideapps.com/u/Himaladin)\
**Post date:** [May 22, 2024, 2:33pm UTC](https://community.glideapps.com/t/timestamp-to-unix/73574/2 "2024-05-22T14:33:35Z")

</div>

Hi Alina, is this what you are looking for?

```auto
return Math.floor(new Date(p1).getTime() / 1000);

```

---

<div class="post-metadata">

**Author:** ![Alina](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/alina/32/65894_2.png) [@Alina](https://community.glideapps.com/u/Alina)\
**Post date:** [May 22, 2024, 6:58pm UTC](https://community.glideapps.com/t/timestamp-to-unix/73574/3 "2024-05-22T18:58:11Z")

</div>

Oh yes, thank you so much 🙏

---

<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:** [May 29, 2024, 6:58pm UTC](https://community.glideapps.com/t/timestamp-to-unix/73574/4 "2024-05-29T18:58:23Z")

</div>

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