ChronosChronos

isEqualOrBefore

Checks if the current date is equal to or before a specified date.

isEqualOrBefore()

Checks if the current date is equal to or before a specified date.

Signature

isEqualOrBefore(other: ChronosInput): boolean

Parameters

  • other: The date to compare against (can be string, Date, or Chronos instance)

Return Type

boolean - Returns true if the current Chronos date is either:

  • Exactly equal to the comparison date, OR
  • Occurs before the comparison date

Example

playground.ts

Last updated: Thu, May 21, 2026 05:51:00AM (UTC)

On this page