Skip to content
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.