VCalendarUtcToTimeZoneTime Method
This method can be called to convert a date/time value from Universal Time (UTC) to the specified
time zone time.
Namespace: EWSoftware.PDI.ObjectsAssembly: EWSoftware.PDI.Data (in EWSoftware.PDI.Data.dll) Version: 2023.1.2.0
public static DateTimeInstance UtcToTimeZoneTime(
DateTime convertDate,
string timeZoneId
)
Public Shared Function UtcToTimeZoneTime (
convertDate As DateTime,
timeZoneId As String
) As DateTimeInstance
public:
static DateTimeInstance^ UtcToTimeZoneTime(
DateTime convertDate,
String^ timeZoneId
)
static member UtcToTimeZoneTime :
convertDate : DateTime *
timeZoneId : string -> DateTimeInstance
- convertDate DateTime
- The universal (UTC) date/time value to convert to the time zone time.
- timeZoneId String
- The time zone ID of a time zone definition in the TimeZones
collection.
DateTimeInstanceThe date/time information in the time zone's time if the specified time zone is found in the
collection or the unmodified date/time information if it cannot be found.
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.