method
beginning_of_week
v2.3.8 -
Show latest stable
- Class:
ActiveSupport::CoreExtensions::Date::Calculations
beginning_of_week()public
Returns a new Date/DateTime representing the "start" of this week (i.e, Monday; DateTime objects will have time set to 0:00)