# Adding a 'last edited' date/time at the top of an article

**URL:** <https://community.hubspot.com/t/adding-a-last-edited-date-time-at-the-top-of-an-article/77527>\
**Category:** Knowledge Base Tool\
**Tags:** developer, content, enterprise\
**Created:** [March 20, 2023, 1:00pm UTC](https://community.hubspot.com/t/adding-a-last-edited-date-time-at-the-top-of-an-article/77527 "2023-03-20T13:00:06Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![FraserKeddie](https://avatars.discourse-cdn.com/v4/letter/f/0ea827/32.png) [@FraserKeddie](https://community.hubspot.com/u/FraserKeddie)\
**Post date:** [March 20, 2023, 1:00pm UTC](https://community.hubspot.com/t/adding-a-last-edited-date-time-at-the-top-of-an-article/77527/1 "2023-03-20T13:00:06Z")

</div>

Hi,

I am looking to add a date (and possibly time) at the top of a Knowledge Base article so the user can see when it was last edited or updated. Since it appears this functionality does not exist, it may be this needs to be javascript or a job for a developer.

Does anyone have any experience with this?

Thanks.

---

<div class="post-metadata">

**Author:** ![Whathcock](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/whathcock/32/98434_2.png) [@Whathcock](https://community.hubspot.com/u/Whathcock)\
**Post date:** [March 20, 2023, 1:49pm UTC](https://community.hubspot.com/t/adding-a-last-edited-date-time-at-the-top-of-an-article/77527/2 "2023-03-20T13:49:36Z")

</div>

Hi @FraserKeddie ,

I found [this article](https://blog.hubspot.com/customers/writing-a-custom-updated-timestamp-for-blog-posts) , and this [community post](https://community.hubspot.com/t5/CMS-Development/Updated-Date-on-Blog/m-p/406162) that details a snippet of code you can add to include an “updated date” on a HubSpot blog post -- I’m wondering if the same would work for Knoweldge Base articles?

Hope this helps! If it did, please help the community by marking this as a solution.

Whitney

 ![signature.png](https://d2qpr2jzcazej7.cloudfront.net/original/2X/3/305b37b06440c5dff80f2d9bc05e5c9c820be7c1.png)

---

<div class="post-metadata">

**Author:** ![FraserKeddie](https://avatars.discourse-cdn.com/v4/letter/f/0ea827/32.png) [@FraserKeddie](https://community.hubspot.com/u/FraserKeddie)\
**Post date:** [June 12, 2023, 9:37am UTC](https://community.hubspot.com/t/adding-a-last-edited-date-time-at-the-top-of-an-article/77527/3 "2023-06-12T09:37:15Z")

</div>

Hi Whitney,

Thanks! In the end I wrote this at the top of every article.

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

Worked great.

Fraser

---

<div class="post-metadata">

**Author:** ![FraserKeddie](https://avatars.discourse-cdn.com/v4/letter/f/0ea827/32.png) [@FraserKeddie](https://community.hubspot.com/u/FraserKeddie)\
**Post date:** [March 20, 2023, 2:51pm UTC](https://community.hubspot.com/t/adding-a-last-edited-date-time-at-the-top-of-an-article/77527/4 "2023-03-20T14:51:28Z")

</div>

Hi [@Whitney](https://community.hubspot.com/t5/user/viewprofilepage/user-id/262348)  
Thank you for the help! The solution was to copy the code from the article you shared directly into the Knowledge Base article. I had some help from a developer who opened my eyes to a multitude of other formatting possibilities which I had until now struggled with in HubSpot.

These links may also prove useful for other people:  
[https://developers.hubspot.com/docs/cms/hubl#hs\_cos\_wrapper\_widget\_2878117828](https://developers.hubspot.com/docs/cms/hubl#hs_cos_wrapper_widget_2878117828)

> **[HubL filters - HubSpot docs](https://developers.hubspot.com/docs/cms/reference/hubl/filters)**
>
> HubL filter list and examples for HubSpot CMS developers.

---

<div class="post-metadata">

**Author:** ![LLuik](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/lluik/32/68311_2.png) [@LLuik](https://community.hubspot.com/u/LLuik)\
**Post date:** [June 7, 2023, 1:28pm UTC](https://community.hubspot.com/t/adding-a-last-edited-date-time-at-the-top-of-an-article/77527/5 "2023-06-07T13:28:10Z")

</div>

Hi there -

To include the date on your articles, you can follow these steps. Please note that currently, there isn’t a way to apply this change universally to all articles, so you’ll need to add the code individually for each one.

1. Access the edit article area for the specific article where you want to add the time stamp.
2. Click on the ‘Insert’ option, followed by ‘Embed.’
3. Insert the following code: \<p style=“font-style: italic; color: #555555; font-size: 11px;”\>Last Updated: {{ content.updated|datetimeformat(‘%B %e, %Y’) }}\</p\>. This code includes a style that makes the text smaller and lighter in color (refer to the screenshot below).

 ![LLuik_0-1686144317275.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/8/7/876e4bd3aaa468e7da160fbe4034bdbc9b2211be.png)

---

<div class="post-metadata">

**Author:** ![DanaIrvine](https://avatars.discourse-cdn.com/v4/letter/d/f4b2a3/32.png) [@DanaIrvine](https://community.hubspot.com/u/DanaIrvine)\
**Post date:** [June 15, 2026, 8:43pm UTC](https://community.hubspot.com/t/adding-a-last-edited-date-time-at-the-top-of-an-article/77527/6 "2026-06-15T20:43:25Z")

</div>

Please tell me that this is being added as a feature to the knowledge base so we don’t need to train our staff to do this on every article we create.

---

<div class="post-metadata">

**Author:** ![stassey](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/stassey/32/36_2.png) [@stassey](https://community.hubspot.com/u/stassey)\
**Post date:** [June 15, 2026, 9:03pm UTC](https://community.hubspot.com/t/adding-a-last-edited-date-time-at-the-top-of-an-article/77527/8 "2026-06-15T21:03:03Z")

</div>

Hey @DanaIrvine

Hi there,

I hope you’re having a wonderful day.

Thank you for your recent contribution to the Ideas Forum. I wanted to let you know that this overlaps with an existing feature that can be found here:

- [Knowledge Base: Last modified date and article views in the article footer](https://community.hubspot.com/t/knowledge-base-last-modified-date-and-article-views-in-the-article-footer/31572)

In the meantime, I would need to suggest commenting and upvoting the feature request above. Thank you for your patience and understanding in the meantime!

Sam, Community Manager
