instance method to_date

Ruby on Rails 2.3.18

Last seen in v2.3.18

Available 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

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close