Displaying exact datetimes on Ghost
If your Ghost CMS blog using Handlebars theme shows published dates in relative time (like Published 11 months ago), you will find a handlebars code like this in your theme file.
Show exact date
The date published_at timeago="true" is responsible for the relative time. Change it to this.
This will give something like September 7, 2000.
Show exact time
You can use [moment.js](https://momentjs.com/) syntax for fine-tuning the details.
For months, use MM for short notations (like 09) and MMMM for more extended notations (like September.) The basic syntax is for hours, minutes, seconds, and AM/PM if you want to display time. For example, I am using the following.
Further Readings
Backlinks (1)
Comments (0)