# Changing date format for "gh-card-date" class in source theme

**URL:** <https://forum.ghost.org/t/changing-date-format-for-gh-card-date-class-in-source-theme/61144>\
**Category:** Themes\
**Created:** [December 10, 2025, 8:10pm UTC](https://forum.ghost.org/t/changing-date-format-for-gh-card-date-class-in-source-theme/61144 "2025-12-10T20:10:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![floydpowers](https://avatars.discourse-cdn.com/v4/letter/f/9de053/32.png) [@floydpowers](https://forum.ghost.org/u/floydpowers)\
**Post date:** [December 10, 2025, 8:10pm UTC](https://forum.ghost.org/t/changing-date-format-for-gh-card-date-class-in-source-theme/61144/1 "2025-12-10T20:10:23Z")

</div>

hi there,

i am currently trying to change the date format as displayed on the home page and author page, or basically any page that lists articles. i have already altered the formatting for article pages.

i’ve narrowed it down to needing to add the following, somewhere:

```auto
<time class="gh-card-date" datetime="{{date format="YYYY-MM-DD"}}">{{date format="YYYYMMDD HHmm"}}</time>

```

but, i’m not sure what theme file i would add that to, or where within the theme file it would go. any ideas or pointers?

**edit** : i figured it out. i had to edit the file found at var/www/ghost/content/themes/source/partials/post-card.hbs
