Date values in UNCEFACT/CII shall carry the attribute format="102" and be transmitted in the format YYYYMMDD (YYYYMMDD).
The date attribute format is not set to 102, or the text content does not contain exactly eight digits. The date value therefore does not use the required YYYYMMDD format.
Format 102 identifies the compact date representation with year, month, and day in the order YYYYMMDD. This consistent representation makes the date machine-readable.
A date value is not provided in the required format: the attribute must be format="102" and the value must contain exactly eight digits in YYYYMMDD order. Update the affected date element.
- Set the
formatattribute on the affected date value to102. - Provide the date text as exactly eight digits in year, month, day order.
- Generate the invoice again and validate it once more.
<udt:DateTimeString format="102">2024-11-15</udt:DateTimeString>
<udt:DateTimeString format="102">20241115</udt:DateTimeString>
Technical details
After whitespace normalization, the test requires @format = '102' and exactly eight digits in the text content of the relevant date string.
Date values in udt:DateTimeString, qdt:DateTimeString, or udt:DateString.
rule/@context)assert/@test)