quarter format not working: `dayjs('2023-Q1', 'YYYY-[Q]Q')` get `Invalid Date`
Open
- 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.
**Expected behavior**
A clear and concise description of what you expected to happen.
**Information**
- Day.js Version [1.11.9]
- OS: [Windows]
- Browser [Edge 117]
- Time zone: [e.g. GMT-07:00 DST (Pacific Daylight Time)]
Contributor guide
Research direction
Start by reproducing the `dayjs('2023-Q1', 'YYYY-[Q]Q')` entry point with Day.js 1.11.9 and trace how the format string is parsed. Confirm the quarter-formatted input produces a valid date and add or update coverage for this case.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- api
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100