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.
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.
Check the Date class… perhaps you want valid_civil? or
valid_commercial? or one of the other variants.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs