-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Description
There is a possible unwanted behavior (and undocumented) in the Types.date() validation :
- When it receives a valid date (ie: 2025-04-18), it correctly returns the expected Date object
- When it receives a "invalid" date (ie: 2025-02-31), it returns the third of March instead of an error
This is probably due to the way Date is implemented in Javascript, but it is quite surprising to accept an invalid date and use it as an other one silently.
Note: moment('2025-02-31') returns an "Invalid date"
Metadata
Metadata
Assignees
Labels
No labels