TimeZoneHelperConvertToUserTimeZone Method |
Returns string representing of given time converted into user date time (site or server).
Namespace: CMS.GlobalizationAssembly: CMS.Globalization (in CMS.Globalization.dll) Version: 10.0.0
Syntax 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:
StringSee Also