dayjs icon indicating copy to clipboard operation
dayjs copied to clipboard

Parse error with DD.MMM.YY format

Open yahormakovich opened this issue 11 months ago • 1 comments

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

yahormakovich avatar Jan 24 '25 09:01 yahormakovich

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

cirolosapio avatar Mar 22 '25 14:03 cirolosapio