Returns string representation of the given date/time converted to user, site or server time zone.
Namespace: CMS.GlobalizationAssembly: CMS.Globalization (in CMS.Globalization.dll) Version: 8.0.0.0 (8.1.5347.20411)
Parameters
- dt
- Type: System DateTime
Server DateTime value
- ui
- Type: CMS.Base IUserInfo
Current user info
- si
- Type: CMS.Base ISiteInfo
Current site info
- usedTimeZone
- Type: CMS.Globalization TimeZoneInfo
Used time zone
- format (Optional)
- Type: System String
Output format
Return Value
Type: StringSee Also