Date.FromUTC (gb.util)

Static Function FromUTC ( Date As Date ) As Date

Move a date so that its UTC representation after the move is its local representation before the move.

For example, if Date is a timestamp that is July 19, 2005, 00:00:00 in your local timezone, then the function will return a shifted timestamp that will be July 19, 2005, 00:00:00 in UTC.

This is useful if you want to create a date/time value in UTC:

Date.FromUTC(Date(2025, 6, 19, 16, 58, 0))

will return a timestamp that is the July 19, 2025, 16:58 in UTC.

See also