[This is preliminary documentation and is subject to change.]

Converts the given time with the timezone to UTC

Namespace:  OfficeClip.Utils
Assembly:  OfficeClip.Utils (in OfficeClip.Utils)
Version: 8.1.1.0

Syntax

C#
public static DateTime ConvertToUtc(
	DateTime dt,
	TimeZoneInfo tz
)
Visual Basic (Declaration)
Public Shared Function ConvertToUtc ( _
	dt As DateTime, _
	tz As TimeZoneInfo _
) As DateTime
Visual C++
public:
static DateTime ConvertToUtc(
	DateTime dt, 
	TimeZoneInfo^ tz
)

Parameters

dt
Type: System..::.DateTime
The given date
tz
Type: OfficeClip.Utils..::.TimeZoneInfo
The timezone at the given date

See Also