Click or drag to resize
TimeZoneHelperConvertToSiteDateTime Method (DateTime, ISiteInfo, TimeZoneInfo)
Returns site date time in dependence on site time zone.

Namespace: CMS.Globalization
Assembly: CMS.Globalization (in CMS.Globalization.dll) Version: 9.0.0
Syntax
C#
public static DateTime ConvertToSiteDateTime(
	DateTime dateTime,
	ISiteInfo siteInfo,
	out TimeZoneInfo usedTimeZone
)

Parameters

dateTime
Type: SystemDateTime
DateTime
siteInfo
Type: CMS.BaseISiteInfo
Site info
usedTimeZone
Type: CMS.GlobalizationTimeZoneInfo
Destination time zone

Return Value

Type: DateTime
See Also