instance method
to_date
Ruby on Rails 2.3.18
Since v2.2.3 Last seen in v2.3.18Available in: v2.2.3 v2.3.18
Signature
to_date()
No documentation comment.
Source
# File activesupport/lib/active_support/core_ext/string/conversions.rb, line 18
def to_date
::Date.new(*::Date._parse(self, false).values_at(:year, :mon, :mday))
end
Defined in activesupport/lib/active_support/core_ext/string/conversions.rb line 18
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::CoreExtensions::String::Conversions