[This is preliminary documentation and is subject to change.]
Converts the date from one timezone to another
Namespace:
OfficeClip.UtilsAssembly: OfficeClip.Utils (in OfficeClip.Utils)
Version: 8.1.1.0
Syntax
C# |
---|
public static DateTime Convert( DateTime fromDt, TimeZoneInfo fromTz, TimeZoneInfo toTz ) |
Visual Basic (Declaration) |
---|
Public Shared Function Convert ( _ fromDt As DateTime, _ fromTz As TimeZoneInfo, _ toTz As TimeZoneInfo _ ) As DateTime |
Visual C++ |
---|
public: static DateTime Convert( DateTime fromDt, TimeZoneInfo^ fromTz, TimeZoneInfo^ toTz ) |
Parameters
- fromDt
- Type: System..::.DateTime
the date which need to be converted to in the from time zone
- fromTz
- Type: OfficeClip.Utils..::.TimeZoneInfo
The timezone for the source date
- toTz
- Type: OfficeClip.Utils..::.TimeZoneInfo
The timezone for the destination date