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