Provide the date in YYYY-MM-DD format

Warning BR-TMP-6 XRechnung

Dates in UBL shall be transmitted in the format YYYY-MM-DD (YYYY-MM-DD).

Recommendation: The invoice remains valid but should be corrected so that it can be processed automatically.
What is wrong

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.

What the rule means

The specified date format ensures that dates in the listed UBL fields are transmitted in a consistent structure.

Please provide the date in `YYYY-MM-DD` format

A date field in the UBL invoice does not have the expected character format. You can provide the value in year-month-day order.

What to do
  1. Find the affected date field, such as cbc:IssueDate or cbc:DueDate.
  2. Use four digits for the year, two for the month, and two for the day, separated by hyphens.
  3. Regenerate the invoice and validate it again.
What it looks like
✗ Triggers the message
<cbc:IssueDate>15.03.2026</cbc:IssueDate>
✓ Correct
<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.

Where the rule applies

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.

Original message from the Schematron
Datumsangaben in UBL müssen im Format JJJJ-MM-TT (YYYY-MM-DD) übermittelt werden.
Context (rule/@context)
cbc:IssueDate | cbc:DueDate | cbc:StartDate | cbc:EndDate | cbc:ActualDeliveryDate | cbc:IssueDate | cbc:TaxPointDate | cbc:PaymentDueDate
Test expression (assert/@test)
matches(normalize-space(text()), '^\d{4}-\d{2}-\d{2}$')