Rules
VRBL-INV-SA-1p2-24
Basic Info
| Rule | The Invoice Issue Date must be formatted YYYY-MM-DD, in accordance to the "Calendar date complete representation" as specified by ISO 8601:2004. |
| Context |
/ubl:Invoice/cbc:IssueDate
|
| Pattern | vrbl-invoice-sa-1p2 |
| Severity | fatal |
Implementation
not(.) or string-length(.) = 10 and substring(., 5, 1) = '-' and substring(., 8, 1) = '-' and number(substring(., 1, 4)) >= 1000 and number(substring(., 1, 4)) <= 9999 and number(substring(., 6, 2)) >= 1 and number(substring(., 6, 2)) <= 12 and number(substring(., 9, 2)) >= 1 and number(substring(., 9, 2)) <= 31