This member is for System Use Only and should NOT be used.
Obsolete. Use TimeZoneUtilities.ConvertTimeZoneToUtcDateTime instead.
Converts a DateTime and optional Time Zone to a UTC DateTime.

The Date Kind of originalDate is very important and determines how the conversion is done - generally this would be Unspecified.

Syntax

ISTimeZones.ConvertDateToUtcDate(originalDate, utcDate, [timeZoneId])

Parameters

NameTypeOptionalByRefDescription
originalDate Date The original DateTime to convert.
utcDate Date ByRef The converted DateTime in UTC format.
timeZoneId String Optional Optional time zone to convert from. This may be either the TimeZone Key or the Windows Id. Do not set if date kind is already UTC or Local (unless local time zone is specified).

Return Value

Boolean

A Boolean value indicating success.

Member of:
ISTimeZones
Namespace:
Intersoft.ISRuntime6
Assembly:
ISRuntime6, Version=6.0.3
Target Framework:
.NET 9.0