can I code this condition in ruby somehow? I need to know if a string can be converted into a date variable. The only way how to do it is Date.parse("my string") and exception. Is there any other way?
date_scraped_from_the_net = "20 Dec 2009" or it could be "today"
if date_scraped_from_the_net is not a date type
needs_to_be_updated = true
end