DATETOUTC

Converts the given local date time value to UTC date time.

Syntax

DATETOUTC(localdateval)

Example

DATETOUTC({{mydatefield}}

Notes

When used in a Form Design the local time is based on the device's local time. If used in a template, local time is based on the Organisation's Default time zone.

If you are inserting/updating rows in a Data Source with Date & Time values from a Form, then you will see that the values in the bound Data Source column are in UTC timezone (e.g. 2024-10-30T09:15:50Z).  

This is consistent with the platform policy of storing Date & Time values as UTC timezone, and ensures your Data Source will work correctly when bound to Date & Time fields.

Related 

DATETOLOCAL