Files
RSSHub/lib/utils/parse-date.js
2021-05-08 21:49:05 +00:00

5 lines
163 B
JavaScript

const dayjs = require('dayjs');
dayjs.extend(require('dayjs/plugin/customParseFormat'));
module.exports = (date, ...options) => dayjs(date, ...options).toDate();