Date format YYYYMMDD · CII-DT-097
- Severity · Error
- Applies to · CII
- Editorial review pending
Format code 102 represents a date such as 20261109. A date with separators does not match the code.
As of
Who can correct it?
The sender can correct the invoice.
How to fix it
- Export the actual calendar date as YYYYMMDD without separators.
- CII · //udt:DateTimeString[@format = '102']
Rule text and source
Paraphrase · With format code 102, the rule expects eight year, month and day digits in udt:DateTimeString. It checks for month 01 to 12 and day 01 to 31.
Message to the sender
Hello,
Validation of the invoice XML for {invoiceNumber} returned CII-DT-097. The message concerns date format YYYYMMDD. Please correct the export and send me the updated XML file.
Thank you.Example
The same date is shown first with hyphens and then in the required format.
CII
//udt:DateTimeString[@format = '102']
Fails the rule
<udt:DateTimeString format="102">2026-11-09</udt:DateTimeString>
Corrected
<udt:DateTimeString format="102">20261109</udt:DateTimeString>Rule versions
CEN · EN 16931 (KoSIT) 1.3.16
CEN · EN 16931 1.3.17