Validation on "date"

hi all,

      im having a date part in one of my view page.i used

tag for it.i set the format as mm/dd/yyyy.i want to show a
validation message when user entered the date as 30/02/any year or
31/02/any year.im waiting for the replies.

Karthikragunath B. wrote:

hi all,

      im having a date part in one of my view page.i used

[date_select] tag for it.i set the format as mm/dd/yyyy.i want to show a
validation message when user entered the date as 30/02/any year or
31/02/any year.im waiting for the replies.

http://www.ruby-doc.org/core/

Check the Date class… perhaps you want valid_civil? or
valid_commercial? or one of the other variants.