# HubL displaying different date values

**URL:** <https://community.hubspot.com/t/hubl-displaying-different-date-values/106277>\
**Category:** CMS Development\
**Tags:** enterprise\
**Created:** [May 2, 2024, 2:02am UTC](https://community.hubspot.com/t/hubl-displaying-different-date-values/106277 "2024-05-02T02:02:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ACarrillo7](https://avatars.discourse-cdn.com/v4/letter/a/58f4c7/32.png) [@ACarrillo7](https://community.hubspot.com/u/ACarrillo7)\
**Post date:** [May 2, 2024, 2:02am UTC](https://community.hubspot.com/t/hubl-displaying-different-date-values/106277/1 "2024-05-02T02:02:14Z")

</div>

Hey Guys,

I’m having a hard time dealing with dates in HubL.

I have this custom object with a date property, one of the objects has this value

![ACarrillo7_0-1714615165443.png](https://d2qpr2jzcazej7.cloudfront.net/original/2X/1/15debdd80e120f079803aa825c327d1d3a139029.png)

The thing is that when I query this object in one of the modules I’m creating, the date changes for some reason.

![ACarrillo7_1-1714615230435.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/4/e/4ece00cde9ebc72156ec6061da0baf521ef3998c.png)

as you can see HS UI says the start is 03/14/2024 but hubL says the start is 3/15/24.

Any ideas on how to solve this or what could be the issue?

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [May 2, 2024, 7:54pm UTC](https://community.hubspot.com/t/hubl-displaying-different-date-values/106277/2 "2024-05-02T19:54:30Z")

</div>

Hi, @ACarrillo7 👋 I hope you are doing great! I’d like to invite some of our community members to the conversation — hey @MBERARD @Jnix284 @Stephanie-OG, do you have any recent experience or troubleshooting tips you can share with @ACarrillo7?

Thank you very much for taking a look! — Jaycee

---

<div class="post-metadata">

**Author:** ![jnix284](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jnix284/32/29_2.png) [@jnix284](https://community.hubspot.com/u/jnix284)\
**Post date:** [May 3, 2024, 1:37pm UTC](https://community.hubspot.com/t/hubl-displaying-different-date-values/106277/3 "2024-05-03T13:37:11Z")

</div>

Happy to help [@Jaycee\_Lewis](https://community.hubspot.com/t5/user/viewprofilepage/user-id/127074), this is certainly a strange one, but I think I’ve seen something similar happen once before.

@ACarrillo7 are you using local dev tools or working directly in the HubSpot UI?

And is your time zone the same as that of the HubSpot account?

I did some dev work for a German account and there was a discrepenacy with the dates I could pull (from the U.S.) compared to those in the account due to the time zone difference.

---

<div class="post-metadata">

**Author:** ![MattPickle](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mattpickle/32/84631_2.png) [@MattPickle](https://community.hubspot.com/u/MattPickle)\
**Post date:** [May 3, 2024, 2:18pm UTC](https://community.hubspot.com/t/hubl-displaying-different-date-values/106277/4 "2024-05-03T14:18:52Z")

</div>

It might help to set the “formatting” parameter in the crm\_objects() function to false, so it will give you a unix timestamp instead of a string.

---

<div class="post-metadata">

**Author:** ![ACarrillo7](https://avatars.discourse-cdn.com/v4/letter/a/58f4c7/32.png) [@ACarrillo7](https://community.hubspot.com/u/ACarrillo7)\
**Post date:** [May 3, 2024, 2:27pm UTC](https://community.hubspot.com/t/hubl-displaying-different-date-values/106277/5 "2024-05-03T14:27:20Z")

</div>

Yes, solved it by doing so. The date is still “wrong” but it worked after formatting the date again using JS. Stil weird ;(
