Message

A date MUST be formatted YYYY-MM-DD.

Context
cbc:IssueDate | cbc:DueDate | cbc:TaxPointDate | cbc:StartDate | cbc:EndDate | cbc:ActualDeliveryDate
Test
string-length(text()) = 10 and (string(.) castable as xs:date)