TimeZoneHelperConvertToSiteDateTime Method (DateTime, ISiteInfo, TimeZoneInfo) |
Returns site date time in dependence on site time zone.
Namespace: CMS.GlobalizationAssembly: CMS.Globalization (in CMS.Globalization.dll) Version: 13.0.131
Syntax 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:
DateTimeSee Also