# Date Picker property format in Email

**URL:** <https://community.hubspot.com/t/date-picker-property-format-in-email/117570>\
**Category:** Email Marketing Tool\
**Tags:** marketing-email\
**Created:** [October 2, 2024, 10:45pm UTC](https://community.hubspot.com/t/date-picker-property-format-in-email/117570 "2024-10-02T22:45:06Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![yamlnz](https://avatars.discourse-cdn.com/v4/letter/y/65b543/32.png) [@yamlnz](https://community.hubspot.com/u/yamlnz)\
**Post date:** [October 2, 2024, 10:45pm UTC](https://community.hubspot.com/t/date-picker-property-format-in-email/117570/1 "2024-10-02T22:45:06Z")

</div>

Hi there,

I want to use a property called “birthday” in my marketing email. It’s field type is Date Picker. If I used it by default like

`{{contact.birthday}}`

it shows something like “30/11/20” which is super confusing to recipients. I want to show it in long/medium form like “30 September 2020”. I’ve tried adding it as

`{{contact.birthday|format_date("long", "Pacific/Auckland", "en-NZ")}}`

but when I do it returns nothing.

I would prefer if this could be done using Hubl, but if not hopefully a calculated property works? I don’t want to push 2 different properties using api for essentially the same thing, cause it’s going to be a hassle to manage properties if we want different date formats.

---

<div class="post-metadata">

**Author:** ![Mike\_Eastwood](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mike_eastwood/32/70075_2.png) [@Mike\_Eastwood](https://community.hubspot.com/u/Mike_Eastwood)\
**Post date:** [October 2, 2024, 11:08pm UTC](https://community.hubspot.com/t/date-picker-property-format-in-email/117570/2 "2024-10-02T23:08:35Z")

</div>

Kia ora @yamlnz

Have you tried using explicit Date Time e.g. “d MMMM yyyy” as seen in the [Template Docs](https://developers.hubspot.com/docs/cms/hubl/filters#format-date)?

`{{ contact.birthdate|format_date('d MMMM yyyyy') }}`

If I see an unexpcted result I use [pprint](https://developers.hubspot.com/docs/cms/hubl/filters#pprint) to debug:

`{{ contact.birthday|pprint }}`

You make need to create a fallback (or an “if” loop) for when the date is not know.

Have fun

Mike

Here to learn more about HubSpot and share my HubSpot Knowledge. I’m the founder of [Webalite](https://www.webalite.com?utm_campaign=community-forum&utm_source=community&utm_content=signature) a Gold HubSpot Partner Agency based in Wellington, New Zealand and the founder of **Portal-iQ** the world’s first automated [HubSpot Portal Audit](https://portal-iq.com?utm_campaign=community-forum&utm_source=community-forum&utm_content=signature) that helps you work smarter with HubSpot.

---

<div class="post-metadata">

**Author:** ![yamlnz](https://avatars.discourse-cdn.com/v4/letter/y/65b543/32.png) [@yamlnz](https://community.hubspot.com/u/yamlnz)\
**Post date:** [October 2, 2024, 11:41pm UTC](https://community.hubspot.com/t/date-picker-property-format-in-email/117570/3 "2024-10-02T23:41:36Z")

</div>

Thanks for your response, [@Mike\_Eastwood](https://community.hubspot.com/t5/user/viewprofilepage/user-id/9259)

Yes, I have tried using “dd MMMM yyyy” and other variants, and none of them show anything. Also tried format\_datetime just in case.

Have tried pprint. {{ contact.birthdate|format\_date(‘d MMMM yyyyy’)|pprint }} prints nothing. While {{ contact.birthdate|pprint }} shows (String: 30/11/20). Just want to reiterate tho, the property is a “date picker” type. Honestly, I’m stumped and there really should be an easy way to do this.

---

<div class="post-metadata">

**Author:** ![JWingate2](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jwingate2/32/37981_2.png) [@JWingate2](https://community.hubspot.com/u/JWingate2)\
**Post date:** [October 3, 2024, 2:32am UTC](https://community.hubspot.com/t/date-picker-property-format-in-email/117570/4 "2024-10-03T02:32:49Z")

</div>

Hi @yamlnz ,

I do not believe the formatting works like that in HubSpot for the date picker property. Depending on your subscription you might be able to build a custom coded workflow that would create it in a single line of text property.

---

<div class="post-metadata">

**Author:** ![yamlnz](https://avatars.discourse-cdn.com/v4/letter/y/65b543/32.png) [@yamlnz](https://community.hubspot.com/u/yamlnz)\
**Post date:** [October 3, 2024, 8:27pm UTC](https://community.hubspot.com/t/date-picker-property-format-in-email/117570/5 "2024-10-03T20:27:17Z")

</div>

That \*\*bleep\*\*. This is a super basic functionality for a marketing tool to have. Having another workflow would make maintenance a mess.
