now()
Last updated 18/07/2023
The now()
is a function on the five
object which is used to return the current date and time in UTC as a string.
info
When using the now()
on a table event the data type for the field must be TimeStamp
.
Available
Client
and Server
Function Signature
now(): string;
Return Value
A string representing the current date, formatted as RFC 3339.
Example Output
Output
console.log(five.now()); // output '2023-03-10 16:22:00.000000'