Message

A date must be formatted YYYY-MM-DD.

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