isSameDay()

Determines if one date is in the same year, month and day as another date.

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

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 day will be returned.

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.