Table of contents
TOC
Collapse the table of content
Expand the table of content

DateTimeZone.ToUtc

Owen Duncan|Last Updated: 4/19/2018

About

Returns a DateTime value to the Utc time zone.

DateTimeZone.ToUtc(dateTime as datetimezone) as nullable datetimezone  

Arguments

ArgumentDescription
dateTimeThe 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  
© 2018 Microsoft