Click or drag to resize
TimeZoneHelperConvertToUserTimeZone Method
Returns string representing of given time converted into user date time (site or server).

Namespace: CMS.Globalization
Assembly: CMS.Globalization (in CMS.Globalization.dll) Version: 9.0.0
Syntax
C#
public static string ConvertToUserTimeZone(
	DateTime time,
	bool displayGMT,
	IUserInfo ui,
	ISiteInfo si,
	string format = null
)

Parameters

time
Type: SystemDateTime
DateTime to be converted
displayGMT
Type: SystemBoolean
Indicates if GMT information should be appended to result string
ui
Type: CMS.BaseIUserInfo
IUserInfo
si
Type: CMS.BaseISiteInfo
ISiteInfo
format (Optional)
Type: SystemString
Output format

Return Value

Type: String
See Also