BR-TMP-6
Datumsangaben in UBL müssen im Format JJJJ-MM-TT (YYYY-MM-DD) übermittelt werden.
warning: reported, still valid
What the rule checks
As the rule set's publisher wrote it. The rule runs on every element the context matches, and fails where the test is false; the validator reports the line of that element.
Context
cbc:IssueDate | cbc:DueDate | cbc:StartDate | cbc:EndDate | cbc:ActualDeliveryDate | cbc:IssueDate | cbc:TaxPointDate | cbc:PaymentDueDate
Test
matches(normalize-space(text()), '^\d{4}-\d{2}-\d{2}$')
Checked with XRechnung 3.0 Invoice (UBL), XRechnung 3.0 Credit Note (UBL)