diff --git a/src/index.js b/src/index.js index 061ade178..7afec08b7 100644 --- a/src/index.js +++ b/src/index.js @@ -113,7 +113,12 @@ class Dayjs { } isValid() { - return !(this.$d.toString() === C.INVALID_DATE_STRING) + switch (this.$D !== this.$d.getDate()) { + case true: + return !(this.$d.toString() === C.INVALID_DATE_STRING) + default: + return false + } } isSame(that, units) {