isAfterDay

Calendar
stable

Returns true if date falls on a calendar day strictly after comparing, ignoring the time component. Both dates are compared at the start of their respective day.

API

Signature

Full TypeScript signature sourced from the util file.

typescript

API

Parameters

Input parameters accepted by this util.

date
required
Date
The date to test.
comparing
required
Date
The reference date. The time component is ignored — only the calendar day is compared.

API

Return value

The value returned by this util.

true when startOfDay(date) > startOfDay(comparing).

Usage

Examples

Ready-to-paste usage snippets.

Day-level comparison (time ignored)

typescript