Browse Source

getMonthDay

es6
windy 8 years ago
parent
commit
40761e2aeb
  1. 5
      bi/core.js
  2. 5
      docs/core.js
  3. 5
      src/core/proto/date.js

5
bi/core.js

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

5
docs/core.js

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

5
src/core/proto/date.js

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

Loading…
Cancel
Save