TimeZoneHelper.ConvertTimeZoneDateTime Method |
Returns DateTime according timezone information.
Namespace: CMS.GlobalizationAssembly: CMS.Globalization (in CMS.Globalization.dll) Version: 13.0.131
Syntaxpublic static DateTime ConvertTimeZoneDateTime(
DateTime dateTime,
TimeZoneInfo srcTimeZoneInfo,
TimeZoneInfo destTimeZoneInfo,
bool timeZonesRequired = true
)
Parameters
- dateTime
- Type: System.DateTime
Source datetime - srcTimeZoneInfo
- Type: CMS.Globalization.TimeZoneInfo
Source timezone - destTimeZoneInfo
- Type: CMS.Globalization.TimeZoneInfo
Destination timezone - timeZonesRequired (Optional)
- Type: System.Boolean
If true than the time is converted only if timezones are enabled in the system
Return Value
Type:
DateTime
See Also