lewisdale.dev/config/filters/dates.js
2023-02-08 09:29:44 +00:00

5 lines
180 B
JavaScript

module.exports = function(eleventyConfig) {
eleventyConfig.addFilter('dateDisplay', date => new Date(date).toLocaleDateString('en-GB', {
"dateStyle": "short"
}));
}