#2664 closed bug (invalid)
[Validate] Validation of dates does not quite work
Reported by: | chitoiup | Owned by: | joern |
---|---|---|---|
Priority: | critical | Milestone: | 1.2.4 |
Component: | plugin | Version: | 1.2.3 |
Keywords: | validate date | Cc: | [email protected]… |
Blocked by: | Blocking: |
Description
According to the date method, 30/30/2008 is a valid date. Maybe use a regex in the function instead of calling Date().
Change History (2)
comment:1 Changed 15 years ago by
Owner: | set to joern |
---|
comment:2 Changed 15 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
So far all date methods included in the validation plugin check only date formats, not sanity. See http://docs.jquery.com/Plugins/Validation/Methods/date
If you need more than that, take a look a Datejs: http://www.datejs.com/ I don't (yet) want to include that in the validation plugin, as even the base package is 25kb, compressed. It supports a ton more than just checking formats.