SyntaxFix
Write A Post
Hire A Developer
Questions
In Ruby 1.9.2 and above they added a .to_date function to DateTime:
http://ruby-doc.org/stdlib-1.9.2/libdoc/date/rdoc/DateTime.html#method-i-to_date
This instance method doesn't appear to be present in earlier versions like 1.8.7.