Cast a database date to a UTC date that will be serialised correctly by JSON without affecting the date, i.e., just changes the DateTimeKind to 'UTC' without affecting the date.

<para> Use when passing dates such as Account History Item Dates and Effective Dates from Script Code to an HTML Widget's template text in the form of a JSON object. </para> <para> This is a shortcut to Runtime.DateUtilities.CastToUtcDateTime. </para>

Syntax

finHtmlWidgetUtilities.GetJsonUtcDateTimeFromDatabaseDateTime(value)

Parameters

NameTypeOptionalByRefDescription
value Date A Date. If this does not have a Kind of 'Unspecified', a trace warning will occur.

Return Value

Date

A Date value.

Member of:
finHtmlWidgetUtilities
Namespace:
Intersoft.finSupport6
Assembly:
finSupport6, Version=6.0.3
Target Framework:
.NET 9.0