isSameMondayWeek()

Determines if one date is in the same year, month, and week (Monday to Sunday) as another date.

This function is valid in v2.20.0 to v2.24.3. This function has been downloaded 39 times.

Parameters

{Date} date1
The date to be compared to date2.
{Date=} date2 Optional, Default:undefined
The date to be compared to date1. If undefined or not specified then a partial function will be returned which will accept date2 as its only parameter.

Returns

{boolean|Function}
If date2 is not given or is undefined a partial function will be returned which will accept date2 as its only parameter. If date1 and date2 are specified then a boolean indicating whether or not they are in the same year, month, and week (Monday to Sunday) will be returned.

Required Function

This function directly requires the following function which is included automatically:

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

Requiring Function

This function is directly required by the following function:

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