What it means
In a CII file every date sits in a DateTimeString element with a format attribute that says how the date is written. Format 102 means year, month and day as eight digits, YYYYMMDD. This covers dates such as the invoice date (BT-2), the due date (BT-9), the delivery date (BT-72) and the start and end of an invoicing period. The rule checks the shape of the text: a four-digit year, a month from 01 to 12 and a day from 01 to 31, with nothing else. Spaces around the digits are tolerated.
Why it matters
The recipient's software reads the date from those eight digits. A date written another way, such as with dashes, dots or a time of day, cannot be read reliably and could be misread. The file fails the check and the invoice is rejected.
How to fix it
Find the date that is flagged and rewrite it as year, month and day with nothing between them, for example 20261105 for 5 November 2026. Remove any dashes, dots, slashes, month names or time of day. In your invoicing software, check the date fields and the export or format settings, since the file is built from them. If you edit the XML, change the text inside DateTimeString so that it agrees with the format attribute.
The rule as published
Date time string with format attribute 102 shall be YYYYMMDD. Where this rule applies
| Rule set | Version |
|---|---|
| EN 16931 (CII) | 1.3.17 |
| XRechnung 3.0 (CII) | 3.0.2 |
| Factur-X 1.09 EXTENDED | 1.0.9-2 |
| ZUGFeRD 2.5 EXTENDED | 2.5.2 |
| NLCIUS (CII) | 1.0.3.13 |
| France CTC (CII) | 1.4.0-04 |
Check your file
Drop your e-invoice to see whether CII-DT-097 still fails, and which other rules do.
Related rules
- CII-DT-098 Put a VAT exemption reason only in the VAT breakdown
- CII-DT-101 Identifiers must not carry a schemeName attribute
- CII-DT-102 Identifiers must not carry a schemeAgencyName attribute
- CII-DT-103 Identifiers must not carry a schemeDataURI attribute
- CII-DT-104 Identifiers must not carry a schemeURI attribute
- CII-DT-105 Each embedded attachment needs a MIME type