Example
Return the current date:
sql
SELECT CURDATE();
Definition and Usage
The CURDATE() function returns the current date.
Note: The date is returned as "YYYY-MM-DD" (string) or as YYYYMMDD (numeric).
Note: This function equals the CURRENT_DATE() function.
Syntax
text
CURDATE()
Technical Details
| Works in: | From MySQL 4.0 |
|---|
More Examples
Example
Return the current date + 1:
sql
SELECT CURDATE() + 1;