Date time string with format attribute 102 shall be YYYYMMDD.
The content of udt:DateTimeString does not match the required pattern of four digits for the year, two for the month, and two for the day. The check allows months from 01 to 12 and days from 01 to 31.
Format 102 represents a date in year, month, day order without separators. A consistent format allows the date to be processed as structured data.
The date in udt:DateTimeString does not match the expected format for format="102". You can update it by putting the year, month, and day in the required order.
- Write the four-digit year first, followed by the two-digit month and then the two-digit day.
- Do not include separators between the digits.
- Generate the invoice again and validate it once more.
<udt:DateTimeString format="102">2024-01-02</udt:DateTimeString>
<udt:DateTimeString format="102">20240102</udt:DateTimeString>
Technical details
The XPath applies a regular expression to the text content of udt:DateTimeString with format="102". It checks the digit pattern and the month and day ranges, not the calendar validity of the date.
The rule applies to udt:DateTimeString when its format attribute has the value 102.
rule/@context)assert/@test)