# Document date

Source: https://developer.avalara.com/avatax-dm-combined-erp/sales-tax-badge/transactions/cert-doc-date/

# Document date

**Element type: Required**

**Endpoints/models used:** [CreateTransactionModel](https://developer.avalara.com/api-reference/avatax/rest/v2/models/CreateTransactionModel/)

Your integration must provide a way for users to enter the document date. This is accomplished using the`date` field in the [CreateTransactionModel](https://developer.avalara.com/api-reference/avatax/rest/v2/models/CreateTransactionModel/).

The`date` field indicates the calendar day on which the transaction occurred. Note that transactions are calculated by the calendar day and are not affected by time zones. Whatever the calendar day is locally when you create the transaction, tax will be calculated as of the tax laws in effect on that calendar day.

This field is required because the date is essential to correctly determine the tax rules for a transaction and because it is easy to mis-interpret calendar days when a transaction occurs close to a time zone boundary.  

```
{    "type": "SalesInvoice",    "companyCode": "DEFAULT",    "date": "2020-10-20",    "code": "XYZ",    "customerCode": "ABC",    "purchaseOrderNo": "123456789",    "commit": true,    "currencyCode": "USD",    "description": "Yarn",    ...}
```

[Previous](/avatax-dm-combined-erp/sales-tax-badge/transactions/cert-customer-code)

[Next](/avatax-dm-combined-erp/sales-tax-badge/transactions/cert-tax-calc-date)