Skip to main content

dateTime()

Last updated 8/08/2022

TypeScript Example

The following code executes before a new row is inserted into a table.


Set the local current date and time in the Date field
function NewOrder(five: Five, context: any, result: FiveError): FiveError {
context.new.Date = five.dateTime();
return five.success();
}

JavaScript Example

The following code executes before a new row is inserted into a table.


Set the local current date and time in the Date field
function NewOrder(five, context, result) {
context.new.Date = five.dateTime();
return five.success();
}