Dates in UBL shall be transmitted in the format YYYY-MM-DD (YYYY-MM-DD).
The normalized text value of the date field does not match the YYYY-MM-DD pattern: four digits, a hyphen, two digits, a hyphen, and two digits.
The specified date format ensures that dates in the listed UBL fields are transmitted in a consistent structure.
A date field in the UBL invoice does not have the expected character format. You can provide the value in year-month-day order.
- Find the affected date field, such as
cbc:IssueDateorcbc:DueDate. - Use four digits for the year, two for the month, and two for the day, separated by hyphens.
- Regenerate the invoice and validate it again.
<cbc:IssueDate>15.03.2026</cbc:IssueDate>
<cbc:IssueDate>2026-03-15</cbc:IssueDate>
Technical details
The test applies a regular expression for exactly four, two, and two digits separated by hyphens to the normalized text content of each date field. It checks the character pattern.
The rule applies to the listed date fields in UBL, including cbc:IssueDate, cbc:DueDate, cbc:StartDate, cbc:EndDate, cbc:ActualDeliveryDate, cbc:TaxPointDate, and cbc:PaymentDueDate.
rule/@context)assert/@test)