spanOfSundayWeek()

Determines the earliest and latest date-times of the year, month, and week (Sunday to Saturday) of a specific Date object.

This function is valid in v2.20.0. This function has been downloaded 1 time.

Parameter

{Date} date
The object from which to pull the year, month, and week (Sunday to Saturday).

Returns

{Array.<Date>}
An array of two dates: the earliest and latest date-times of the year, month, and week (Sunday to Saturday) contained by date.

Required Function

This function requires the following function which is included automatically:

  • isSameYear()
    Determines if one date is in the same year as another date.