Skip to content
This repository was archived by the owner on Oct 7, 2024. It is now read-only.
Daniel Gorman edited this page May 22, 2019 · 3 revisions

The NOW Function

Function Group: Date

NOW returns the current date and time.

Syntax

NOW()

  • NOW takes no arguments, and always returns the current date and time.

Uses

If we received some incomplete data and wanted to inject a timestamp, we could do so with NOW:

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

We can use NOW to set the value of the date_requested field. Calling NOW would return something like:

2019-05-22T09:51:16.597Z

The structure of the datetime response returned follows the ISO 8601 standard.

Clone this wiki locally