pse.CalendarUtilglobal with sharing class CalendarUtil Utilities relating to days and dates. EnumsDayOfWeek
Methods
getDayOfWeekglobal static pse.CalendarUtil.DayOfWeek getDayOfWeek(Date dt) Returns the day of the week for the provided Date. Input Parameters
getStartOfWeekglobal static Date getStartOfWeek(Date refDate, pse.CalendarUtil.DayOfWeek weekStartDay) Find the start date of the week containing the requested date. The weekStartDay (e.g. Monday) determines which day is considered to be the start of a week. Input Parameters
Sample Code
|