Expand description
ISO 8601 date and datetime validation rules for ISO 20022 messages.
ISO 20022 uses two date-like types:
ISODateTime:YYYY-MM-DDThh:mm:ss[.sss][Z|+hh:mm|-hh:mm]ISODate:YYYY-MM-DD
Structural validation is performed without an external calendar library: ranges are enforced for each field, but calendar semantics (e.g. Feb 30) are intentionally not checked, as ISO 20022 schemas also don’t prohibit them at the lexical level.
Structs§
- IsoDate
Rule - Validates a value as an ISO 8601 date string in the format used by
ISO 20022:
YYYY-MM-DD. - IsoDate
Time Rule - Validates a value as an ISO 8601 datetime string in the format used by
ISO 20022:
YYYY-MM-DDThh:mm:ss[.sss][Z|+hh:mm|-hh:mm].