Curriculum
Course: MYSQL
Login

Curriculum

MYSQL

MySQL References

0/140
Text lesson

CURRENT_DATE

Example

Provide the date of today.

SELECT CURRENT_DATE();

Definition and Usage

The CURRENT_DATE() function yields the present date.

Please note that the date is provided in either “YYYY-MM-DD” (string) or YYYYMMDD (numeric) format.

Note: This function is equivalent to the CURDATE() function.

Syntax

CURRENT_DATE()

Technical Details

Works in:

 From MySQL version 4.0

More Examples

Example

Provide the date that follows the current date by one day.

SELECT CURRENT_DATE() + 1;