This tutorial explains how to use the MySQL CURDATE function with syntax and examples.
The MySQL CURDATE function returns the current date.
The syntax for the CURDATE function in MySQL is:
CURDATE( )
There are no parameters or arguments for the CURDATE function.
The CURDATE function can be used in the following versions of MySQL:
Let's look at some MySQL CURDATE function examples and explore how to use the CURDATE function in MySQL.
For example:
mysql> SELECT CURDATE();
Output: '2014-01-28'
mysql> SELECT CURDATE() + 0;
Output: 20140128
mysql> SELECT CURDATE() + 1;
Output: 20140129