validates_format_of :closing_date, :with => /^\d\d-\d\d-\d\d\d\d$/, :message => “is not correct format”
Does this seem correct or is there a better way to do this? Basically, I
have a closing_date column in my database which is set as a date field.
On the front end form, I’ve used a text box for the user to enter the
date. I’ve entered the data exactly as the regular expression above
dictates but I can’t seem to make it pass that instance method