Skip to content

areDateTimesEqual

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

Return true if two PlainDateTime ISO strings represent the same instant of local date/time components.

  • Compares all date and time components.
  • Returns false if either input is invalid.
ParameterTypeDescription
value1stringfirst ISO PlainDateTime string
value2stringsecond ISO PlainDateTime string

boolean indicating whether both date-times are equal component-wise

import { areDateTimesEqual } from "@northguild/gmt/plain/compare";
areDateTimesEqual("2024-02-29T12:34:56", "2024-02-29T12:34:56") // true
output 

plain/compare/areDateTimesEqual.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.