VCalendarTime Zone Time To Local Time Method
This method can be called to convert a date/time value from the specified time zone time to local
time.
Definition
Namespace: EWSoftware.PDI.Objects
Assembly: EWSoftware.PDI.Data (in EWSoftware.PDI.Data.dll) Version: 2025.1.9.0
The date/time information in local time if the specified time zone is found in the collection or the unmodified date/time information if it cannot be found.
Assembly: EWSoftware.PDI.Data (in EWSoftware.PDI.Data.dll) Version: 2025.1.9.0
C#
public static DateTimeInstance TimeZoneTimeToLocalTime(
DateTime convertDate,
string? timeZoneId
)VB
Public Shared Function TimeZoneTimeToLocalTime (
convertDate As DateTime,
timeZoneId As String
) As DateTimeInstanceC++
public:
static DateTimeInstance^ TimeZoneTimeToLocalTime(
DateTime convertDate,
String^ timeZoneId
)F#
static member TimeZoneTimeToLocalTime :
convertDate : DateTime *
timeZoneId : string -> DateTimeInstance Parameters
- convertDate DateTime
- The time zone date/time to convert to local time.
- timeZoneId String
- The time zone ID of a time zone definition in the TimeZones collection.
Return Value
DateTimeInstanceThe date/time information in local time if the specified time zone is found in the collection or the unmodified date/time information if it 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.