NOW

NOW returns the current date and time.

Function category: Date

Syntax

NOW()

Arguments

Description

None

Takes no arguments and always returns the current date and time.

Examples

Let's say we received the following incomplete data.

{
"data":{
"VIN": "4T1SV22E3MU392268",
"date_requested": null
}
}

If we wanted to inject a timestamp, we could set the value of the data_requested field using NOW.

Calling NOW would return a timestamp such as this:

2019-05-22T09:51:16.597Z

The structure of the date/time response returned follows the ISO 8601 standard.

See also TODAY.