Notes
Returns the start of the week for the Date that called the method, depending on the context user's locale.
Here are some examples:
Date myDate = Date.today();
Date weekStart = myDate.toStartofWeek();
System.debug(weekStart);
Output: 2023-12-03 00:00:00
Video
Video does not exists.