method

end_of_week

Importance_1
Ruby on Rails latest stable (v7.1.3.2) - 0 notes - Class: Calculations
end_of_week(start_day = Date.beginning_of_week) public

Returns a new date/time representing the end of this week on the given day. Week is assumed to start on start_day, default is Date.beginning_of_week or config.beginning_of_week when set. DateTime objects have their time set to 23:59:59.

Show source
Register or log in to add new notes.