# custom date format for blog post

**URL:** <https://community.hubspot.com/t/custom-date-format-for-blog-post/102311>\
**Category:** APIs & Integrations\
**Tags:** cms-content, developer-tools, free, professional, starter\
**Created:** [March 12, 2024, 10:19am UTC](https://community.hubspot.com/t/custom-date-format-for-blog-post/102311 "2024-03-12T10:19:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![TSharma55](https://avatars.discourse-cdn.com/v4/letter/t/ecb155/32.png) [@TSharma55](https://community.hubspot.com/u/TSharma55)\
**Post date:** [March 12, 2024, 10:19am UTC](https://community.hubspot.com/t/custom-date-format-for-blog-post/102311/1 "2024-03-12T10:19:05Z")

</div>

{{ rec\_post.publish\_date|datetimeformat(‘%B %e, %Y’)}}  
I am using this in blog post which is rendering December 12, 2024.  
But can we get the customize date format from which I get  
Dec 12, 2024 \>

---

<div class="post-metadata">

**Author:** ![JTBuys](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jtbuys/32/62318_2.png) [@JTBuys](https://community.hubspot.com/u/JTBuys)\
**Post date:** [March 12, 2024, 2:53pm UTC](https://community.hubspot.com/t/custom-date-format-for-blog-post/102311/2 "2024-03-12T14:53:14Z")

</div>

@TSharma55, that filter has been deprecated. I recommend using the hubl below. This hubl uses the [format\_date filter](https://developers.hubspot.com/docs/cms/hubl/filters#format-date) which is based on [unicode LDML patterns](https://unicode.org/reports/tr35/tr35-dates.html#Date_Format_Patterns). The MMM portion will format the month in the abbreviated style you want.

`{{rec_post.publish_date|format_date('MMM d, y')}}`
