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
Q: How can I check for invalid combination of a year-month-day ?!
when I create a new date with invalid month or day it is transformed to another valid date :
const birthDate = new DateObject({ year: 1942, month: 84, day: 55 })
console.log(birthDate.format('YYYY-MM-DD'), birthDate.isValid) //1949-01-24 true (expected: 1942-84-55, false)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Q: How can I check for invalid combination of a year-month-day ?!
when I create a new date with invalid month or day it is transformed to another valid date :
const birthDate = new DateObject({
year: 1942,
month: 84,
day: 55
})
The text was updated successfully, but these errors were encountered: