Ext.DbLongToDate()

Converts the int value to the variant date value format used in an SBM database.

Function Signature

 Variant Ext.DbLongToDate( dateInt )

Parameters

Parameter Type Description

dateInt

int

Use this argument to convert the int date value from the number of seconds since midnight, Jan. 1, 1970 to a Variant storing a date. This is not the same as converting dateInt to a Date using other built-in operators; that conversion interprets dateInt as the number of days since midnight Dec. 31, 1899.

Important: See also Ext.SetCompatibilityVersion().

Return

Type Description

Variant

The variant date value.

Technical Details

SBM ModScript version: 11.3.

Notes

Use TimeT or TimeMillis as the preferred way to interact with dates.

Related Topics

Extension Functions