Side navigation
#2664 closed bug (invalid)
Opened April 06, 2008 11:17PM UTC
Closed May 12, 2008 10:18AM UTC
Last modified March 15, 2012 09:06AM UTC
[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: | sdwilsh@forerunnerdesigns.com |
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().
Attachments (0)
Change History (2)
Changed May 02, 2008 01:30PM UTC by comment:1
owner: | → joern |
---|
Changed May 12, 2008 10:18AM UTC by comment:2
resolution: | → invalid |
---|---|
status: | new → closed |
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.