CURDATE Function - SQL


Overview


The CURDATE function in SQL returns the current date. It is useful for retrieving the system's current date for use in queries.

Example:

SELECT CURDATE()

Syntax:

SELECT CURDATE()

The CURDATE function does not take any arguments and returns the current date in the format YYYY-MM-DD.