VCalendarTimeZoneTimeToUtc Method
This method can be called to convert a date/time value from the specified time zone time to Universal
Time (UTC).
Namespace: EWSoftware.PDI.ObjectsAssembly: EWSoftware.PDI.Data (in EWSoftware.PDI.Data.dll) Version: 2023.1.2.0
public static DateTime TimeZoneTimeToUtc(
DateTime convertDate,
string timeZoneId
)
Public Shared Function TimeZoneTimeToUtc (
convertDate As DateTime,
timeZoneId As String
) As DateTime
public:
static DateTime TimeZoneTimeToUtc(
DateTime convertDate,
String^ timeZoneId
)
static member TimeZoneTimeToUtc :
convertDate : DateTime *
timeZoneId : string -> DateTime
- convertDate DateTime
- The time zone date/time to convert to Universal Time.
- timeZoneId String
- The time zone ID of a time zone definition in the TimeZones
collection.
DateTimeThe date/time in Universal Time (UTC) if the specified time zone is found in the collection
or the unmodified date/time if it cannot be found.