now()
Last updated 5/02/2024
The now()
is a function on the Five
object used to return the current date and time in UTC as a string.
info
When using the now()
function 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'