# Losant Date format trouble

**URL:** <https://forums.losant.com/t/losant-date-format-trouble/4418>\
**Category:** Help\
**Tags:** workflow\
**Created:** [March 21, 2022, 8:21pm UTC](https://forums.losant.com/t/losant-date-format-trouble/4418 "2022-03-21T20:21:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jonathan\_Calderon](https://avatars.discourse-cdn.com/v4/letter/j/ecccb3/32.png) [@Jonathan\_Calderon](https://forums.losant.com/u/Jonathan_Calderon)\
**Post date:** [March 21, 2022, 8:21pm UTC](https://forums.losant.com/t/losant-date-format-trouble/4418/1 "2022-03-21T20:21:02Z")

</div>

Hello! I’m trying to compare dates but I’m having problems with the format of the Losant date. Is there a way to convert it to ISO or another way to compare it?  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/getstructure/original/2X/2/2499745e65b6c861e4f653ae4680e517b6b919a6.png)

Thanks 🙂

---

<div class="post-metadata">

**Author:** ![Dylan\_Schuster](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/dylan_schuster/32/2850_2.png) [@Dylan\_Schuster](https://forums.losant.com/u/Dylan_Schuster)\
**Post date:** [March 21, 2022, 8:26pm UTC](https://forums.losant.com/t/losant-date-format-trouble/4418/2 "2022-03-21T20:26:28Z")

</div>

Have you tried the `{{formatDate}}` helper? From our [documentation](https://docs.losant.com/workflows/accessing-payload-data/#format-helpers):

> `{{formatDate val formatStr}}` : Casts the given value as a date, and then formats it using the `formatStr` parameter (default ‘L LTS’). When used in a dashboard, this will use the current browser locale when formatting.

If that does not work, you can also try the [Date/Time Node](https://docs.losant.com/workflows/logic/date-time/) to convert your date to a comparable format.

If those fail, you could try a [Function Node](https://docs.losant.com/workflows/logic/function/), though that requires a working knowledge of JavaScript to utilize.
