SiteWebAstrolabe/src/filters/w3-date-filter.js

6 lines
120 B
JavaScript
Raw Normal View History

2020-06-19 23:47:44 +02:00
module.exports = function w3cDate(value) {
const dateObject = new Date(value);
return dateObject.toISOString();
};