# BR-KSA-F-01

Source: https://xmlvalid.com/rules/BR-KSA-F-01

> A date MUST be formatted YYYY-MM-DD, in accordance to the "Calendar date complete representation" as specified by ISO 8601:2004, format YYYY-MM-DD.

- Level: error
- Rule sets: ZATCA e-invoicing rules (Saudi Arabia) SDK 3.4.6
- Context: `cbc:IssueDate | cbc:DueDate | cac:Delivery/cbc:ActualDeliveryDate | cac:BillingReference/cac:InvoiceDocumentReference/cbc:IssueDate | cac:InvoiceLine/cac:DocumentReference/cbc:IssueDates | cbc:TaxPointDate`
- Test: `(string-length(.) = 10 and (string(.) castable as xs:date))`

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