customParseFormat doesn't work when format doesn't fit the Date
- Dominant language
- JavaScript
- Stars
- 48.7k
- Forks
- 2.5k
- PR merge metrics
- No merged PRs in 30d
Description
[](https://issuehunt.io/r/iamkun/dayjs/issues/605)
`
dayjs('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](https://issuehunt.io/u/iamkun) has been rewarded.
### Backers (Total: $100.00)
- [ issuehunt](https://issuehunt.io/u/issuehunt) ($100.00)
### Submitted pull Requests
- [#866 Consider using Intl api and update customParseFormat](https://issuehunt.io/r/iamkun/dayjs/pull/866)
---
### Tips
- Checkout the [Issuehunt explorer](https://issuehunt.io/r/iamkun/dayjs/) to discover more funded issues.
- Need some help from other developers? [Add your repositories](https://issuehunt.io/r/new) on IssueHunt to raise funds.
---
IssueHunt has been backed by the following sponsors. [Become a sponsor](https://issuehunt.io/membership/members)
Contributor guide
Assessment
This issue has not been assessed yet.