Flowdock
method

change

Importance_1
Ruby on Rails latest stable (v6.1.7.7) - 0 notes - Class: ActiveSupport::CoreExtensions::Date::Calculations
change(options) public

Returns a new Date where one or more of the elements have been changed according to the options parameter.

Examples:

  Date.new(2007, 5, 12).change(:day => 1)                  # => Date.new(2007, 5, 1)
  Date.new(2007, 5, 12).change(:year => 2005, :month => 1) # => Date.new(2005, 1, 12)
Show source
Register or log in to add new notes.