Bug Tracker

Modify

Ticket #2664 (closed bug: invalid)

Opened 5 years ago

Last modified 14 months ago

[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@…
Blocking: Blocked by:

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

comment:1 Changed 5 years ago by joern

  • Owner set to joern

comment:2 Changed 5 years 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.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.