Converts a Date/Time and optional Time Zone to a UTC Date/Time.

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

Syntax

ISTimeZoneUtilities.ConvertTimeZoneToUtcDateTime(date, utcDate, [timeZoneId])

Parameters

NameTypeOptionalByRefDescription
date Date
utcDate Date ByRef The converted Date value with DateTimeKind of 'Utc'.
timeZoneId String Optional Optional time zone to convert from. This may be either the TimeZone Key or the Windows Id. Do not set if DateTimeKind is already UTC or Local (unless the local Time Zone is specified).

Return Value

Boolean

A Boolean value indicating success.

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