iamkun / iamkun/dayjs

ambiguous definition of `isValid()`

Open
#1,850 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
48.7k
Forks
2.5k
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
A clear and concise description of what the bug is.
### dayjs
image

### moment
image

**Expected behavior**
A clear and concise description of what you expected to happen.

```ts
dayjs('2022-04-32').isValid() // false
```

or **is there any difference of `isValid()` between moment and dayjs**

**Information**
- Day.js Version 1.11.0
- OS: macOS
- Browser 100.0.4896.75
- Time zone: GMT+0800 (中国标准时间)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.