Click or drag to resize
TimeZoneHelperConvertToServerDateTime Method (DateTime, TimeZoneInfo)
Returns server date time in dependence on server time zone.

Namespace: CMS.Globalization
Assembly: CMS.Globalization (in CMS.Globalization.dll) Version: 13.0.131
Syntax
C#
public static DateTime ConvertToServerDateTime(
	DateTime dateTime,
	TimeZoneInfo customTimeZone
)

Parameters

dateTime
Type: SystemDateTime
DateTime
customTimeZone
Type: CMS.GlobalizationTimeZoneInfo
Custom time zone info

Return Value

Type: DateTime
See Also