MySQL NOW() Function

Example

Return current date and time:

SELECT NOW();
Try it Yourself »

Definition and Usage

The NOW() function returns the current date and time.

Note: The date and time is returned as "YYYY-MM-DD HH-MM-SS" (string) or as YYYYMMDDHHMMSS.uuuuuu (numeric).

Syntax

NOW()

Technical Details

Works in: From MySQL 4.0

More Examples

Example

Return current date and time + 1:

SELECT NOW() + 1;
Try it Yourself »

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