bugl
bugl
HomeLearnPatternsSearch
HomeLearnPatternsSearch

Loading lesson path

Learn/SQL/SQL References
SQL•SQL References

MySQL CURDATE() Function

Concept visual

MySQL CURDATE() Function

Pointer walk
two pointers
leftright102132436485116
left=0
right=6
1
3

Start at both ends

Example

Return the current date:

SELECT CURDATE();

Definition and Usage

The CURDATE() function returns the current date.

Note:

The date is returned as

Formula

"YYYY - MM - DD" (string) or as YYYYMMDD (numeric).

Note:

This function equals the

CURRENT_DATE() function.

Syntax

Curdate()

Technical Details

Works in:

From MySQL 4.0

More Examples

Example

Formula

Return the current date + 1:
SELECT CURDATE() + 1;

Previous

❮ MySQL Functions

Next

Previous

MySQL ADDTIME() Function

Next

MySQL CURRENT_DATE() Function