Flowdock
method

to_date

Importance_1
Ruby on Rails latest stable (v6.1.7.7) - 0 notes - Class: ActiveSupport::CoreExtensions::Time::Conversions

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v2.3.8) is shown here.

These similar methods exist in v6.1.7.7:

to_date() public

Converts a Time object to a Date, dropping hour, minute, and second precision.

  my_time = Time.now  # => Mon Nov 12 22:59:51 -0500 2007
  my_time.to_date     # => Mon, 12 Nov 2007

  your_time = Time.parse("1/13/2009 1:13:03 P.M.")  # => Tue Jan 13 13:13:03 -0500 2009
  your_time.to_date                                 # => Tue, 13 Jan 2009
Show source
Register or log in to add new notes.