DateTimeZone.ToUtc

About

Returns a DateTime value to the Utc time zone.

Syntax

DateTimeZone.ToUtc(dateTime as datetimezone) as nullable datetimezone  

Arguments

Argument Description
dateTime The DateTimeZone to convert.

Example

dateTime  = DateTimeZone.FromText("2011-02-20T22:19:27+03:00")  
utcTime = DateTimeZone.ToUtc(dateTime)equals 2011-02-20T19:19:27+00:00