Skip to content

utc/validate

  • The core functions, which every industry uses.
  • isValidHttpDate: Return true when value is a real HTTP header date: the RFC 9110 §5.6.7 HTTP-date that headers like Last-Modified, Date and Expires carry, such as Fri, 15 Mar 2024 14:30:00 GMT.
  • isValidUtc: Return true when the provided string is a valid ISO 8601 UTC datetime.
  • isValidUtcRange: Return true if value1 and value2 form a valid UTC range — both parseable as ISO UTC datetime strings and the instant at value1 is before the instant at value2.
  • isValidUtcTimestamp: Return true when value is a real UTC instant written as YYYY-MM-DDTHH:MM:SS[.f]Z and nothing else: a narrower check than isValidUtc.

Last updated:

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.