Skip to main content

dateTimeLocalToUTC()

Last updated 18/07/2023

The following code executes before a new row is inserted into a table and converts the local date and time to UTC.


Convert the local date and time to UTC
function NewOrder(five, context, result) {
context.new.Date = five.now();
return five.success();
}