Wrong date parsing MMDDYYYY
Open
- Dominant language
- JavaScript
- Stars
- 48.7k
- Forks
- 2.5k
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the bug**
Attempt to parse a date in the format of MMDDYYYY results in incorrect date
**Expected behavior**
I expect that the following
dayjs('02142023', 'MMDDYYYY') will result in a date that corresponds to 14th of Feb 2023
but it results in 22nd of august 0215
dayjs("02142023",'MMDDYYYY')
M {
'$L': 'en',
'$d': 0215-08-22T21:46:32.000Z,
'$x': {},
'$y': 215,
'$M': 7,
'$D': 23,
'$W': 3,
'$H': 0,
'$m': 0,
'$s': 0,
'$ms': 0
}
**Information**
- Day.js Version 1.11.7
- OS: [e.g. iOS] macOS
- Time zone: [e.g. GMT+2:00 ]
Contributor guide
Assessment
This issue has not been assessed yet.