DATE Data Type in MySQL

The Data data type in MySQL is used to store date values in a column. During later data analysis, it is necessary to perform date-time operations on the data.

Dates are displayed in the format ‘YYYY-MM-DD’, but can be inserted using either strings or numbers. If any invalid date is inserted, MySQL will store ‘0000-00-00’ by default.

MySQL DATE Data Type

MySQL DATE Data Type stores date values in the format ‘YYYY-MM-DD‘ and has a valid range of values from ‘1000-01-01‘ to ‘9999-12-31‘.

Similar Reads

DATE Data Type in MySQL

The Data data type in MySQL is used to store date values in a column. During later data analysis, it is necessary to perform date-time operations on the data....

Syntax

DATE Data Type Syntax is:...

MySQL DATE Data Type Examples

The following examples will illustrate how we can use Date data type in MySQL in a variable....

Contact Us