customParseFormat doesn't work when format doesn't fit the Date
See original GitHub issuedayjs('2019/04/19, 'MMDDYY').isValid()
returns true
and it parses to  Wed Jul 20 2005.
Moment.js does not parse it.
https://jsfiddle.net/3meh8g0k/
You can get the same results using other different formats (e.g dayjs('2019/04/19, ‘MM’ returns Mon May 20 2019)
IssueHunt Summary
 iamkun has been rewarded.
Backers (Total: $100.00)
issuehunt ($100.00)
Submitted pull Requests
Tips
- Checkout the Issuehunt explorer to discover more funded issues.
 - Need some help from other developers? Add your repositories on IssueHunt to raise funds.
 
IssueHunt has been backed by the following sponsors. Become a sponsor
Issue Analytics
- State:
 - Created 4 years ago
 - Reactions:3
 - Comments:12 (4 by maintainers)
 
Top Results From Across the Web
Format custom date using dayjs without using ... - Stack Overflow
The reason why you are getting Invalid Date is because the iso8601Format string does not match dayjs's parsing tokens.
Read more >iamkun/dayjs: customParseFormat doesn't work when format ...
customParseFormat doesn't work when format doesn't fit the Date #605 ... You can get the same results using other different formats (e.g ...
Read more >CustomParseFormat
CustomParseFormat extends `dayjs()` constructor to support custom formats of input strings.
Read more >iamkun/dayjs - Gitter
Hi guys, dayjs how to format date to rfc3339 format ? like ... When I try to attach a timezone to it, it...
Read more >How to Fix Excel Dates That Won't Change Format - Contextures
Note: All of the built-in date formatting options should work correctly, after you have converted the text dates to real dates. real dates...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@iamkun Thanks, but I feel I might have confused you… I am not proposing to ignore separator tokens, but to require exact matching between input string and
format.@iamkun I think what @mirefly proposing is a good approach. Is there any concern you have?
I’d like to chime in and try implement it 😃