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

MySQL CURDATE() Function

❮ MySQL Functions

Example

Return current date:

SELECT CURDATE();
Try it Yourself »

Definition and Usage

The CURDATE() 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

CURDATE()

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 CURDATE() + 1;
Try it Yourself »

❮ MySQL Functions