# Adding Date to Blog Listing

**URL:** <https://community.hubspot.com/t/adding-date-to-blog-listing/31271>\
**Category:** Blog, Website & Page Publishing\
**Tags:** content, marketing\
**Created:** [February 4, 2021, 2:19pm UTC](https://community.hubspot.com/t/adding-date-to-blog-listing/31271 "2021-02-04T14:19:55Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![AFisher725](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/afisher725/32/39641_2.png) [@AFisher725](https://community.hubspot.com/u/AFisher725)\
**Post date:** [February 4, 2021, 2:19pm UTC](https://community.hubspot.com/t/adding-date-to-blog-listing/31271/1 "2021-02-04T14:19:55Z")

</div>

Hi -

I have the date on my blog post, but how do I get the date to show up under the title in a blog listing page?

Please advise asap.

Thank you!

---

<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:** [February 5, 2021, 1:12pm UTC](https://community.hubspot.com/t/adding-date-to-blog-listing/31271/2 "2021-02-05T13:12:48Z")

</div>

Hi @AFisher725

Thank you for reaching out

I want to tag some of our experts on this - [@Alejandro\_](https://community.hubspot.com/t5/user/viewprofilepage/user-id/115716) @Gonzalo @MatthewShepherd do you have any thoughts to share with @AFisher725 on this?

Thank you!

Best

Tiphaine

---

<div class="post-metadata">

**Author:** ![MatthewShepherd](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/matthewshepherd/32/31314_2.png) [@MatthewShepherd](https://community.hubspot.com/u/MatthewShepherd)\
**Post date:** [February 5, 2021, 1:37pm UTC](https://community.hubspot.com/t/adding-date-to-blog-listing/31271/3 "2021-02-05T13:37:56Z")

</div>

Hi @AFisher725

This post will tell you how to [edit your blog template](https://knowledge.hubspot.com/cos-blog/how-can-i-edit-my-blog-template). You need to edit your listing template. If that doesn’t help you find your listing template then navigate to settings (cog in top right) → website (in left sidebar) → blog -\>templates (tab) and then look for ‘Template for listing pages’ and click the edit button beside this.

 ![37543i5E06EFBEE5BE5E11.jpg](https://d2qpr2jzcazej7.cloudfront.net/original/3X/1/6/160f1e0af877fa4b3c0a859fe77f29623646fc51.jpeg)

Once you are into your listing template in design manager look for the title of your post, it should look something like this, and note depending on your blog template this could appear multiple times in the template so add your date code beneath each instance:

`<h2><a href="{{content.absolute_url}}">{{ content.name }}</a></h2>`

Beneath this add code like one of the following, depending on what date format you want:

Full localised timestamp of post publish date and time

```lia-code-sample
<div class="blog-post__timestamp">
 {{ content.publish_date_localized }}
</div>

```

Custom date without time (you can move around day month year variables to reflect the format you need)

```lia-code-sample
<div class="custom-date">
 {{ content.publish_date_local_time.strftime('%d') }}
 {{ content.publish_date_local_time.strftime('%B') }},
 {{ content.publish_date_local_time.strftime('%Y') }}
</div>

```

Hope that helps!

---

<div class="post-metadata">

**Author:** ![AFisher725](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/afisher725/32/39641_2.png) [@AFisher725](https://community.hubspot.com/u/AFisher725)\
**Post date:** [February 5, 2021, 2:46pm UTC](https://community.hubspot.com/t/adding-date-to-blog-listing/31271/4 "2021-02-05T14:46:23Z")

</div>

Yes! After playing around to find the right location, it did work! Thank you so much.

---

<div class="post-metadata">

**Author:** ![esraszrr](https://avatars.discourse-cdn.com/v4/letter/e/74df32/32.png) [@esraszrr](https://community.hubspot.com/u/esraszrr)\
**Post date:** [December 30, 2021, 10:43am UTC](https://community.hubspot.com/t/adding-date-to-blog-listing/31271/5 "2021-12-30T10:43:01Z")

</div>

for only date:

\<div class=“content-date”\>  
{{ blogpost.publishDate|datetimeformat(‘%B %e, %Y’) }}  
\</div\>
