lib/xlsx-to-json.js
function isDateType(value) {
    if (value) {
        var str = value.toString();
        return moment(new Date(value), "YYYY-M-D", true).isValid() || moment(value, "YYYY-M-D H:m:s", true).isValid() || moment(value, "YYYY/M/D H:m:s", true).isValid() || moment(value, "YYYY/M/D", true).isValid();
    };
    return false;
}
function isDateType(value) {
    if (value) {
        var str = value.toString();
        return moment(new Date(value), "YYYY-M-D", true).isValid() || moment(value, "YYYY-M-D H:m:s", true).isValid() || moment(value, "YYYY/M/D H:m:s", true).isValid() || moment(value, "YYYY/M/D", true).isValid();
    };
    return false;
}
function isDateType ( value ) { if ( value ) { var str = value . toString ( ) ; return moment ( new Date ( value ) , "YYYY-M-D" , true ) . isValid ( ) || moment ( value , "YYYY-M-D H:m:s" , true ) . isValid ( ) || moment ( value , "YYYY/M/D H:m:s" , true ) . isValid ( ) || moment ( value , "YYYY/M/D" , true ) . isValid ( ) ; } ; return false ; }
date type check.
date type check .