Converts a UTC DateTime to a DateTime in the specified Time Zone (or local time zone if not specified).

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

Syntax

ISTimeZoneUtilities.ConvertUtcToTimeZoneDateTime(utcDate, Date, [timeZoneId])

Parameters

NameTypeOptionalByRefDescription
utcDate Date The original UTC DateTime to convert. Date Kind must be UTC.
Date Date ByRef
timeZoneId String Optional Optional time zone to convert to. This may be either the Time Zone Key or the Windows Id. If blank converts to local time.

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