Date time string with format attribute 102 shall be YYYYMMDD.
The content of udt:DateTimeString with format 102 does not match the expected pattern: four year digits, a month from 01 to 12, and a day from 01 to 31. The test also allows whitespace before and after the date.
Format 102 represents a date in year, month, day order. The fixed pattern enables consistent transmission of the date value.
A date in udt:DateTimeString with format 102 does not match the expected pattern. Use four year digits followed by the month and day to match the format.
- Locate the affected
udt:DateTimeStringelement withformat102. - Enter the value with four year digits, a two-digit month, and a two-digit day.
- Generate the invoice again and validate it.
<udt:DateTimeString format="102">2024-10-03</udt:DateTimeString>
<udt:DateTimeString format="102">20241003</udt:DateTimeString>
Technical details
The regular expression checks for eight digits in YYYYMMDD order and limits the month and day to 01–12 and 01–31. The test does not include a full validation of calendar-date validity.
The rule applies to each udt:DateTimeString element whose format attribute is 102.
rule/@context)assert/@test)