iamkun / iamkun/dayjs

Incorrect date parsing when format is 'MMM-YY'

Open
#1,902 3 comments 2 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**
'Apr-22' is getting parsed as 22/04/2001, despite providing parse format as 'MMM-YY', https://jsfiddle.net/Lhv5fpyw/4/

**Expected behavior**
Date should be parsed correctly as 01/04/2022.

**Information**
- Day.js Version 1.11.2
- OS: OSX
- Browser : Chrome 101
- Time zone: BST

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.