# Date

Property Type: `date`

DateTime values are sent through the API as string values formatted in simplified extended ISO 8601 format, which is always 24 characters long: `YYYY-MM-DDTHH:mm:ss.sssZ` (eg. 1966-07-12T16:34:01.000Z). The timezone is always zero UTC offset, as denoted by the suffix "Z". Though the parser will attempt to make sense of any sane date value, values should be sent in the above extended ISO format.

A Date property can also be configured as "Date only" for cases where the time zone is irrelevant, such as a birth dates. For these, the caller must send a string in the `YYYY-MM-DD` format, and responses will be in the same format (eg. `1973-07-16`).

### Property Options

| Name     | Type    | Default | Description                                                                                                               |
| -------- | ------- | ------- | ------------------------------------------------------------------------------------------------------------------------- |
| dateOnly | Boolean | false   | 'If true, the input must be a string in the YYYY-MM-DD format, and responses will be in the same format (eg. 1973-07-16)' |

### Property Validators

**Required**\
name: `required`

**Date Validator**\
name: `date`\
definition:

| Option    | Type    | Default | Description         |
| --------- | ------- | ------- | ------------------- |
| allowNull | Boolean | false   | Allow null entries  |
| min       | Date    |         | Earliest valid date |
| max       | Date    |         | Latest valid date   |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.medable.com/cortex-api/objects-definition/object-properties/date.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
