mirror of
https://github.com/kogakure/website-11ty-hamburg.stefanimhoff.de.git
synced 2026-02-03 12:15:28 +00:00
11 lines
232 B
JavaScript
11 lines
232 B
JavaScript
const moment = require('moment');
|
|
|
|
module.exports = {
|
|
dateToFormat: function (date, format = 'MMMM Do, YYYY') {
|
|
return moment(date).format(format);
|
|
},
|
|
dateToISO: function (date) {
|
|
return moment(date).format();
|
|
},
|
|
};
|