Skip to content

isAfterDate

  • The core functions, which every industry uses.
isAfterDate(value1: string, value2: string): boolean

Return true if the first ISO PlainDate string represents a date after the second.

  • Uses Temporal.PlainDate.compare to compare dates.
  • Returns false if either input is invalid.
ParameterTypeDescription
value1stringfirst ISO PlainDate string
value2stringsecond ISO PlainDate string

boolean indicating whether value1 is after value2

import { isAfterDate } from "@northguild/gmt/plain/compare";
isAfterDate("2024-03-01", "2024-02-29") // true
output 

plain/compare/isAfterDate.ts

Accessibility
© 2026 NorthGuild · Licences

Code examples: MIT-0. Packages: MIT. Third-party data and components: their own licences, credited where they appear. Everything else: © 2026 NorthGuild, all rights reserved.