ToUTC converts a local date (+time) value with the given Timezone to a UTC datetime. This function returns unknowndatetime if the timezone is not recognized.
Syntax
ToUTC(datetime, Timezone)
Function call | Expected result |
---|---|
ToUTC(date(2020,8,16,15,37), "Europe/Amsterdam") |
8/16/2020 13:37 |
ToUTC(date(2020,8,16,15,37), "Australia/Melbourne") |
8/16/2020 05:37 |
ToUTC(date(2020,8,16,15,37), "unrecognised TZ") |
-empty- |