now()
Last updated 10/09/2024
Example
The following code executes before a new row is inserted into a table and sets the current date and time in UTC in the Date field.
Set the current date and time in UTC in the Date field
function NewOrder(five: Five, context: any, result: FiveError): FiveError {
context.new.Date = five.now();
return five.success();
}
Set the current date and time in UTC in the Date field
function NewOrder(five, context, result) {
context.new.Date = five.now();
return five.success();
}