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