iamkun / dayjs

⏰ Day.js 2kB immutable date-time library alternative to Moment.js with the same modern API
https://day.js.org
MIT License
47k stars 2.3k forks source link

quarter format not working: `dayjs('2023-Q1', 'YYYY-[Q]Q')` get `Invalid Date` #2477

Open Loongphy opened 1 year ago

Loongphy commented 1 year ago

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

charlzyx commented 10 months ago

maybe same proble

dayjs('2023-Q2', 'YYYY-[Q]Q').format('YYYY-[Q]Q') // except 2023-Q2 // but 2023-Q1