Click or drag to resize

TimeZoneInformationToUtcTime Method (TimeZoneInformation, DateTime)

Converts a local time of the source timezone to a Utc time

Namespace:  WorkflowGen.My.Globalization
Assembly:  WorkflowGen.My (in WorkflowGen.My.dll) Version: 8.3.3.0 (8.3.3.20240926)
Syntax
public static DateTime ToUtcTime(
	TimeZoneInformation source,
	DateTime sourceLocalTime
)

Parameters

source
Type: WorkflowGen.My.GlobalizationTimeZoneInformation
The source timezone
sourceLocalTime
Type: SystemDateTime
The local time in the source timezone

Return Value

Type: DateTime
The Utc time that is equivalent to the local time in the source timezone.
See Also