# DT-CIUS-PT-008

Source: https://xmlvalid.com/rules/DT-CIUS-PT-008

> The BT-9 does not meet the defined format: YYYY-MM-DD.

- Level: error
- Rule sets: CIUS-PT rules (Portugal, UBL) 2.1.1
- Context: `//ubl:Invoice/cbc:DueDate | //cn:CreditNote/cac:PaymentMeans/cbc:PaymentDueDate`
- Test: `matches(.,'^((\d{4})-(\d{2})-(\d{2}))$')`

Validate a document against these rules: https://xmlvalid.com/validate
