Skip to main content

DateTimeZone.RemoveZone

Removes timezone information from the given datetimezone value.

Syntax

DateTimeZone.RemoveZone(
dateTimeZone as datetimezone
) as datetime

Remarks

Returns a #datetime value from dateTimeZone with timezone information removed.

Examples

Example #1

Remove timezone information from the value #datetimezone(2011, 12, 31, 9, 15, 36, -7, 0).

DateTimeZone.RemoveZone(#datetimezone(2011, 12, 31, 9, 15, 36, -7, 0))

Result:

#datetime(2011, 12, 31, 9, 15, 36)

Category

DateTimeZone