Validates a timestamp string against the XML Schema 1.1.2 date-time format.
This function checks whether the provided timestamp string conforms to the format "yyyy-MM-ddTHH:mm:ssZ", without milliseconds, as defined in XML Schema 1.1.2.
The timestamp string to validate.
true if the timestamp is valid, false otherwise.
true
false
const isValid = isValidXmlSchema112Timestamp('2023-08-23T12:34:56Z'); // true Copy
const isValid = isValidXmlSchema112Timestamp('2023-08-23T12:34:56Z'); // true
Validates a timestamp string against the XML Schema 1.1.2 date-time format.
This function checks whether the provided timestamp string conforms to the format "yyyy-MM-ddTHH:mm:ssZ", without milliseconds, as defined in XML Schema 1.1.2.