iamkun / iamkun/dayjs

dayjs('2014-01-33').format('DD/MM/YYYY') doesn't return invalid date

Open
#2,114 5 comments 1 reaction 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**

````
const day = dayjs('2014-01-33').format('DD/MM/YYYY');
console.log(lastDay); // return 02/02/2014
````
doesn't return invalid date

**Expected behavior**
Should the above expression return invalid date or is this the expected behavior?

**Information**
- Day.js Version: v1.11.6
- OS: Debian version 11.5
- Browser: Chrome 107.0.5304.87
- Time zone: +1

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.