4 lines
84 B
JavaScript
4 lines
84 B
JavaScript
'use strict';
|
|
module.exports = function (str) {
|
|
return !isNaN(Date.parse(str));
|
|
};
|