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

Namespace: CMS.Globalization
Assembly: CMS.Globalization (in CMS.Globalization.dll) Version: 8.2.23
Syntax
C#
public static DateTime ConvertToServerDateTime(
	DateTime dateTime,
	ISiteInfo siteInfo
)

Parameters

dateTime
Type: SystemDateTime
DateTime
siteInfo
Type: CMS.BaseISiteInfo
Site info

Return Value

Type: DateTime
See Also