You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
var isDate = require('./isDate')
|
|
var helperGetDateTime = require('./helperGetDateTime')
|
|
|
|
/**
|
|
* 判断是否有效的Date对象
|
|
*
|
|
* @param {any} val 对象
|
|
* @return {boolean}
|
|
*/
|
|
function isValidDate (val) {
|
|
return isDate(val) && !isNaN(helperGetDateTime(val))
|
|
}
|
|
|
|
module.exports = isValidDate
|
|
|