Open In App

DATE() in MySQL

The DATE() function is used to extract the date part from a DateTime expression. This function is an inbuilt function in MySQL. The DATE() function in MySQL can be used to know the date for a given date or a DateTime. The DATE() function takes a date value as an argument and returns the date. The date argument represents the valid date or DateTime.

Syntax :



select date('Expression'); 

Below are some common examples or usages of the DATE() function :

Article Tags :