# Date and Time Data Types

- [DATE](https://mariadb.com/docs/server/reference/data-types/date-and-time-data-types/date.md): Complete DATE type reference: YYYY-MM-DD format, YYMMDD input literals, date range 1000-01-01 to 9999-12-31, and zero-date SQL\_MODE handling.
- [DATETIME](https://mariadb.com/docs/server/reference/data-types/date-and-time-data-types/datetime.md): Complete DATETIME data type guide for MariaDB. Complete reference for syntax, valid values, storage requirements, and range limits for production use.
- [SQL\_TSI\_YEAR](https://mariadb.com/docs/server/reference/data-types/date-and-time-data-types/sql_tsi_year.md): Synonym for YEAR. This keyword is an alias used for declaring a column to store year values.
- [TIME](https://mariadb.com/docs/server/reference/data-types/date-and-time-data-types/time.md): Store time values. This type handles time durations or time of day, ranging from '-838:59:59' to '838:59:59' with optional microsecond precision.
- [TIMESTAMP](https://mariadb.com/docs/server/reference/data-types/date-and-time-data-types/timestamp.md): Complete TIMESTAMP data type guide for MariaDB. Complete reference for syntax, valid values, storage requirements, and range limits for production use.
- [YEAR Data Type](https://mariadb.com/docs/server/reference/data-types/date-and-time-data-types/year-data-type.md): Store year values. This type stores a year in 2-digit or 4-digit format, supporting values from 1901 to 2155, and 0000.


---

# 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://mariadb.com/docs/server/reference/data-types/date-and-time-data-types.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.
