CURDATE()

Description: Returns the current date in the format YYYY-MM-DD or YYYYMMDD.

Examples:

  • CURDATE() returns 2002-04-23.

  • CURDATE()+0 returns 20020423.

See also: CURRENT_DATE(), CURTIME()

Get Sams Teach Yourself MySQL in 21 Days, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.