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
Date.valid_date? *date_string.split('-').reverse.map(&:to_i)