isAfter
Checks if this date occurs after a specified date for a unit.
isAfter()
Checks if this date occurs after a specified date for a unit.
Note
When comparing weeks, the weekStartsOn parameter determines how weeks are calculated. For example, if weekStartsOn is 1 (Monday), then a date on Sunday would be considered part of the previous week.
Signature
isAfter(other: ChronosInput, unit?: TimeUnit, weekStartsOn?: Enumerate<7>): booleanParameters
other: The date to compare against (can be string, Date, orChronosinstance)unit: The granularity for comparison ('year', 'month', 'week', 'day', 'hour', 'minute', 'second')weekStartsOn: (Optional) Which day (0-6, Sunday-Saturday) to consider as the start of the week (default:0-> Sunday)
Return Type
boolean - Returns true if the current date occurs after the comparison date
Example
playground.ts
Last updated: Thu, May 21, 2026 05:51:00AM (UTC)
