VCalendarTime Zone To Time Zone Method
This method can be called to convert a date/time value from one time zone time to the another time
zone time.
Definition
Namespace: EWSoftware.PDI.Objects
Assembly: EWSoftware.PDI.Data (in EWSoftware.PDI.Data.dll) Version: 2025.1.9.0
The time zone date/time information in the destination time zone's time if the specified time zones are found in the collection or the unmodified date/time information if one or both cannot be found.
Assembly: EWSoftware.PDI.Data (in EWSoftware.PDI.Data.dll) Version: 2025.1.9.0
C#
public static DateTimeInstance TimeZoneToTimeZone(
DateTime convertDate,
string? sourceId,
string? destId
)VB
Public Shared Function TimeZoneToTimeZone (
convertDate As DateTime,
sourceId As String,
destId As String
) As DateTimeInstanceC++
public:
static DateTimeInstance^ TimeZoneToTimeZone(
DateTime convertDate,
String^ sourceId,
String^ destId
)F#
static member TimeZoneToTimeZone :
convertDate : DateTime *
sourceId : string *
destId : string -> DateTimeInstance Parameters
- convertDate DateTime
- The date/time in the source time zone to convert to the destination time zone
- sourceId String
- The time zone ID of a time zone definition in the TimeZones collection that represents the date/time's current time zone.
- destId String
- The time zone ID of a time zone definition in the TimeZones collection that represents the destination time zone.
Return Value
DateTimeInstanceThe time zone date/time information in the destination time zone's time if the specified time zones are found in the collection or the unmodified date/time information if one or both cannot be found.
Remarks
For this method, the end date/time information in the returned object is the same as the
start date/time information and it has a zero length duration.