Notes
Returns the first of the month for the Date that called the method.
Here are some examples:
date myDate = date.newInstance(1987, 12, 17);
date firstDate = myDate.toStartOfMonth();
system.debug(firstDate);
Output: 1987-12-01 00:00:00
Video
Video does not exists.