Click or drag to resize
TimeZoneMethodsDateTimeServerConvert Method
Convert datetime with dependence on time zone type to server date time.

Namespace: CMS.Globalization
Assembly: CMS.Globalization (in CMS.Globalization.dll) Version: 8.2.23
Syntax
C#
public static DateTime DateTimeServerConvert(
	DateTime dateTime,
	TimeZoneTypeEnum type,
	TimeZoneInfo customTimeZone
)

Parameters

dateTime
Type: SystemDateTime
User/Site date time
type
Type: CMS.GlobalizationTimeZoneTypeEnum
Time zone type
customTimeZone
Type: CMS.GlobalizationTimeZoneInfo
Custom time zone info

Return Value

Type: DateTime
See Also