We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug dayjs('190-12-01', 'YYYY-MM-DD', 'es', true).isValid() Why does this method return true? Year consist 3 numbers instead of 4
Expected behavior Return false
Information
The text was updated successfully, but these errors were encountered:
you must extend the customParseFormat so that the strict validation works.
import customParseFormat from "dayjs/plugin/customParseFormat"; dayjs.extend(customParseFormat)
Sorry, something went wrong.
you must extend the customParseFormat so that the strict validation works. import customParseFormat from "dayjs/plugin/customParseFormat"; dayjs.extend(customParseFormat)
Thanks! That should be mentioned in docs i believe
Thanks
No branches or pull requests
Describe the bug
dayjs('190-12-01', 'YYYY-MM-DD', 'es', true).isValid()
Why does this method return true? Year consist 3 numbers instead of 4
Expected behavior
Return false
Information
The text was updated successfully, but these errors were encountered: