TimeZoneHelperConvertTimeToUTC Method |
Returns UTC date time in dependence on given time zone.
Namespace: CMS.GlobalizationAssembly: CMS.Globalization (in CMS.Globalization.dll) Version: 13.0.131
Syntax public static DateTime ConvertTimeToUTC(
DateTime dateTime,
TimeZoneInfo timeZoneInfo
)
Parameters
- dateTime
- Type: SystemDateTime
DateTime to convert - timeZoneInfo
- Type: CMS.GlobalizationTimeZoneInfo
Time zone
Return Value
Type:
DateTimeSee Also