⓫ Eleventy
22 Jun, 2023
👋 FYI, this note is over 6 months old. Some of the content may be out of date.
On this page
Eleventy config Jump to heading
Add a filter Jump to heading
eleventyConfig.addFilter('readableDate', (dateObj) => {
return DateTime.fromJSDate(dateObj, { zone: 'utc' }).toFormat('dd LLL, yyyy')
})
Usage:
{{ page.date | readableDate }}
← Back home