Click or drag to resize
TimeZoneHelperConvertTimeToUTC Method
Returns UTC date time in dependence on given time zone.

Namespace: CMS.Globalization
Assembly: CMS.Globalization (in CMS.Globalization.dll) Version: 12.0.0
Syntax
C#
public static DateTime ConvertTimeToUTC(
	DateTime dateTime,
	TimeZoneInfo timeZoneInfo
)

Parameters

dateTime
Type: SystemDateTime
DateTime to convert
timeZoneInfo
Type: CMS.GlobalizationTimeZoneInfo
Time zone

Return Value

Type: DateTime
See Also