I have a string: \"31-02-2010\" and want to check whether or not it is a valid date. What is the best way to do it?
\"31-02-2010\"
I need a method which which returns
d, m, y = date_string.split '-' Date.valid_date? y.to_i, m.to_i, d.to_i