SQL Date Function CURDATE()
The SQL CURDATE()
function is used to return the current date in the system in the YYYY-MM-DD
format. This function does not take any arguments and is supported by most SQL database management systems.
Here's an example usage of CURDATE()
in a SQL query:
SELECT CURDATE();
The result of this query will be the current date in the YYYY-MM-DD
format. For example, if today is February 28th, 2023, the result will be 2023-02-28
.