Skip to content
Discussion options

You must be logged in to vote

This is expected, invalid dates are only produced if the values you're providing are completely invalid.
For "day of the month" specifically Luxon will clamp it to the valid month range, if you're not the one setting it, as in your example.
In general, set and fromObject will behave like Date.UTC in that units that are out of range will overflow to the others.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by hashhar
Comment options

You must be logged in to vote
2 replies
@diesieben07
Comment options

@dobon
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants