Bug Tracker

Opened 12 years ago

Closed 12 years ago

Last modified 8 years ago

#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: sdwilsh@…
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 12 years ago by joern

Owner: set to joern

comment:2 Changed 12 years ago by joern

Resolution: invalid
Status: newclosed

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.

Note: See TracTickets for help on using tickets.