Message

A date must be formatted YYYY-MM-DD.

Context
cbc:*[ends-with(name(), 'Date')]
Test
(string(.) castable as xs:date) and (string-length(.) = 10)