Validate date field

hi,

Below is an example of a text field I have, which works fine, until you
enter an invalid date such as Feb 31st, which doesn’t exist

Is there a way of checking this easily and returning an error message
like validates_presence_of does ?

Client Deadline Date:
<%= date_select 'project', 'client_deadline_date',:order => [:day,:month,:year] %>

Try my validates_date_time plugin:

http://svn.viney.net.nz/things/rails/plugins/validates_date_time

-Jonathan.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs