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