MySQL CURRENT_DATE() Function

Example

Return the current date:

SELECT CURRENT_DATE();
Try it Yourself »

Definition and Usage

The CURRENT_DATE() function returns the current date.

Note: The date is returned as "YYYY-MM-DD" (string) or as YYYYMMDD (numeric).

Note: This function equals the CURDATE() function.

Syntax

CURRENT_DATE()

Technical Details

Works in: From MySQL 4.0

More Examples

Example

Return the current date + 1:

SELECT CURRENT_DATE() + 1;
Try it Yourself »

Copyright 1999-2023 by Refsnes Data. All Rights Reserved.