Skip to content

YYYY-MM-DD Format Not Working #555

@GoPro16

Description

@GoPro16

Issuehunt badges

Describe the bug
When passing in a parse format of YYYY-MM-DD with an invalid date string of 10/12/2014, should result in and invalid date but instead resolves to 08-14-2015

Expected behavior
Should result in date.isValid() === false

Information

  • Day.js Version [e.g. v1.8.11]
  • OS: [e.g. MacOS]
  • Browser [e.g. chrome 73]

CodeSandbox Link


IssueHunt Summary

iamkun iamkun has been rewarded.

Backers (Total: $50.00)

Submitted pull Requests


Tips


IssueHunt has been backed by the following sponsors. Become a sponsor

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions