Click or drag to resize
TimeZoneHelperConvertToUserDateTime Method (DateTime, IUserInfo, TimeZoneInfo)
Returns user date time in dependence on user time zone.

Namespace: CMS.Globalization
Assembly: CMS.Globalization (in CMS.Globalization.dll) Version: 13.0.131
Syntax
C#
public static DateTime ConvertToUserDateTime(
	DateTime dateTime,
	IUserInfo userInfo,
	out TimeZoneInfo usedTimeZone
)

Parameters

dateTime
Type: SystemDateTime
DateTime
userInfo
Type: CMS.BaseIUserInfo
User info
usedTimeZone
Type: CMS.GlobalizationTimeZoneInfo
Destination time zone

Return Value

Type: DateTime
See Also