NOW()

Description: Returns the current date and time in the format YYYY-MM-DD hh:mm:ss or YYYYMMDDhhmmss.

Examples:

  • NOW() returns 2002-04-23 17:13:50.

  • NOW()+0 returns 20020423171350.

See also: CURDATE(), 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.