Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parse error with DD.MMM.YY format #2818

Open
yahormakovich opened this issue Jan 24, 2025 · 1 comment
Open

Parse error with DD.MMM.YY format #2818

yahormakovich opened this issue Jan 24, 2025 · 1 comment

Comments

@yahormakovich
Copy link

Parse error with date format DD.MMM.YY, dayjs('29.Jul.21', 'DD.MMM.YY') returns Invalid Date.
Intresting that I tried old version like 1.8.16 and it works fine, but last 1.11.13 returns Invalid Date.

dayjs.extend(customParseFormat); is used of course.

  • Day.js Version 1.11.13
  • OS: Windows
  • Browser Edge
@cirolosapio
Copy link

cirolosapio commented Mar 22, 2025

same here with another format
console.log('28/06/67', 'DD/MM/YY', dayjs('28/06/67', 'DD/MM/YY').format('YYYY-MM-DD'))

version: 1.11.13

i've tried with version 1.8.16 also, but same result

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants