VCalendarTimeZoneTimeToUtc Method

This method can be called to convert a date/time value from the specified time zone time to Universal Time (UTC).

Definition

Namespace: EWSoftware.PDI.Objects
Assembly: EWSoftware.PDI.Data (in EWSoftware.PDI.Data.dll) Version: 2023.1.2.0
public static DateTime TimeZoneTimeToUtc(
	DateTime convertDate,
	string timeZoneId
)

Parameters

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.

Return Value

DateTime
The 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.

See Also