EcoBot/node_modules/vali-date/index.js

4 lines
84 B
JavaScript

'use strict';
module.exports = function (str) {
return !isNaN(Date.parse(str));
};