Bug Tracker

Ticket #2664 (closed bug: invalid)

Opened 8 months ago

Last modified 7 months ago

[Validate] Validation of dates does not quite work

Reported by: chitoiup Assigned to: joern
Type: bug Priority: critical
Milestone: 1.2.4 Component: plugin
Version: 1.2.3 Keywords: validate date
Cc: sdwilsh@forerunnerdesigns.com Needs: Patch

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

Change History

Changed 7 months ago by joern

  • owner set to joern

Changed 7 months ago by joern

  • status changed from new to closed
  • resolution set to invalid

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.