Skip to content
This repository has been archived by the owner on Jul 1, 2020. It is now read-only.

Full validation on Dates (including leap year and calendar date validation)

Compare
Choose a tag to compare
@ghiscoding ghiscoding released this 24 Sep 16:40
· 61 commits to master since this release
  • Prior to this change, all Date validators had basic tests on them and it wasn't validating leap year (now it does).
  • Now it does check for leap year and also requires to be a valid calendar date
  • Thanks @jdriesen for providing proper date regex for Euro, I then adapted them for US and found ISO later.
  • NOTE: I deprecated the use of any short dates (that is year with 2 digits, date_euro_short, date_us_short) because I spent too much time trying to adapt regex I found. If someone can fix them, please make a PR