|
|
@ -24062,8 +24062,9 @@ Date.checkLegal = function (str) { |
|
|
|
if (ar.length <= 2) { |
|
|
|
if (ar.length <= 2) { |
|
|
|
return MM >= 1 && MM <= 12; |
|
|
|
return MM >= 1 && MM <= 12; |
|
|
|
} |
|
|
|
} |
|
|
|
Date._MD[1] = Date.isLeap(YY) ? 29 : 28; |
|
|
|
var MD = Date._MD.slice(0); |
|
|
|
return MM >= 1 && MM <= 12 && DD <= Date._MD[MM - 1]; |
|
|
|
MD[1] = Date.isLeap(YY) ? 29 : 28; |
|
|
|
|
|
|
|
return MM >= 1 && MM <= 12 && DD <= MD[MM - 1]; |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
Date.parseDateTime = function (str, fmt) { |
|
|
|
Date.parseDateTime = function (str, fmt) { |
|
|
|