MySQL CURRENT_DATE() Function
THE WORLD'S LARGEST WEB DEVELOPER SITE

MySQL CURRENT_DATE() Function

❮ MySQL Functions

Example

Return current date:

SELECT CURRENT_DATE();
Try it Yourself »

Definition and Usage

The CURRENT_DATE() function returns the current date.

Note: This function returns the current date as a "YYYY-MM-DD" format if used in a string context, and as a YYYYMMDD format if used in a numeric context.

Note: The CURRENT_DATE() function is a synonym for the CURDATE() function.

Syntax

CURRENT_DATE()

Technical Details

Works in: MySQL 5.7, MySQL 5.6, MySQL 5.5, MySQL 5.1, MySQL 5.0, MySQL 4.1, MySQL 4.0, MySQL 3.23

More Examples

Example

Return current date + 1:

SELECT CURRENT_DATE() + 1;
Try it Yourself »

❮ MySQL Functions