# Custom 'Updated' Time Stamp for Blog Posts

**URL:** <https://community.hubspot.com/t/custom-updated-time-stamp-for-blog-posts/36816>\
**Category:** CMS Development\
**Tags:** professional, content\
**Created:** [May 6, 2021, 10:51am UTC](https://community.hubspot.com/t/custom-updated-time-stamp-for-blog-posts/36816 "2021-05-06T10:51:34Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![jjokinen](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jjokinen/32/26243_2.png) [@jjokinen](https://community.hubspot.com/u/jjokinen)\
**Post date:** [May 6, 2021, 10:51am UTC](https://community.hubspot.com/t/custom-updated-time-stamp-for-blog-posts/36816/1 "2021-05-06T10:51:34Z")

</div>

Hi!

I found this article on the subject but seems like the actual code snippet is missing from there. Does anybody have the snippet available for sharing?

[https://blog.hubspot.com/customers/writing-a-custom-updated-timestamp-for-blog-posts](https://blog.hubspot.com/customers/writing-a-custom-updated-timestamp-for-blog-posts)

Thanks in advance!

Joel

---

<div class="post-metadata">

**Author:** ![TitiCuisset](https://avatars.discourse-cdn.com/v4/letter/t/8baadc/32.png) [@TitiCuisset](https://community.hubspot.com/u/TitiCuisset)\
**Post date:** [May 7, 2021, 10:21am UTC](https://community.hubspot.com/t/custom-updated-time-stamp-for-blog-posts/36816/2 "2021-05-07T10:21:03Z")

</div>

Hi @jjokinen

Thank you for reaching out. I have reached out to the team for this missing part.

As for your question, wondering if some of our top experts would already have the answer - @Kevin-C @DanielSanchez @Gonzalo do you have any thoughts on that for @jjokinen ?

Thank you!

Best

Tiphaine

---

<div class="post-metadata">

**Author:** ![jjokinen](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jjokinen/32/26243_2.png) [@jjokinen](https://community.hubspot.com/u/jjokinen)\
**Post date:** [May 11, 2021, 11:37am UTC](https://community.hubspot.com/t/custom-updated-time-stamp-for-blog-posts/36816/3 "2021-05-11T11:37:54Z")

</div>

Hi [@TitiCuisset](https://community.hubspot.com/t5/user/viewprofilepage/user-id/89150),

Thanks! Did you hear anything back from the team?  
And thanks @Gonzalo for the snippet! Would you use that in the exact same way as the article instructs?

---

<div class="post-metadata">

**Author:** ![Gonzalo](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/gonzalo/32/106671_2.png) [@Gonzalo](https://community.hubspot.com/u/Gonzalo)\
**Post date:** [May 12, 2021, 3:32pm UTC](https://community.hubspot.com/t/custom-updated-time-stamp-for-blog-posts/36816/4 "2021-05-12T15:32:38Z")

</div>

If the time is important in your context then yes, you would want to customize the date format filter adding the time and follow the post to replace for the right timezone, otherwise I would say is not that important 🙂

---

<div class="post-metadata">

**Author:** ![TitiCuisset](https://avatars.discourse-cdn.com/v4/letter/t/8baadc/32.png) [@TitiCuisset](https://community.hubspot.com/u/TitiCuisset)\
**Post date:** [May 13, 2021, 2:26pm UTC](https://community.hubspot.com/t/custom-updated-time-stamp-for-blog-posts/36816/5 "2021-05-13T14:26:32Z")

</div>

Hey @jjokinen

Thank you for your reply

The team is looking into it but I haven’t gotten an update just yet, I’ll share that here once I have!

Thank you

Best

Tiphaine

---

<div class="post-metadata">

**Author:** ![TitiCuisset](https://avatars.discourse-cdn.com/v4/letter/t/8baadc/32.png) [@TitiCuisset](https://community.hubspot.com/u/TitiCuisset)\
**Post date:** [June 15, 2021, 8:27am UTC](https://community.hubspot.com/t/custom-updated-time-stamp-for-blog-posts/36816/6 "2021-06-15T08:27:03Z")

</div>

Hi @jjokinen

Apologies for the delay here. Got an update from the team, the snippet in the blog post would be:

```lia-code-sample
{% set update_time = content.updated %}
{% set offset = <your offset> %}
{% set new_time = update_time + offset %}

```

Thank you!

Best

Tiphaine

---

<div class="post-metadata">

**Author:** ![Gonzalo](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/gonzalo/32/106671_2.png) [@Gonzalo](https://community.hubspot.com/u/Gonzalo)\
**Post date:** [May 7, 2021, 4:33pm UTC](https://community.hubspot.com/t/custom-updated-time-stamp-for-blog-posts/36816/7 "2021-05-07T16:33:17Z")

</div>

If you are looking to display the last updated date instead of the published date on a post page you can use the following:

`{{ content.updated|datetimeformat('%B %e, %Y') }}`
