Ext.DateToDbLong()

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

Function Signature

 Variant Ext.DateToDbLong( Variant date )

Parameters

Parameter Type Description

date

Variant

Use this parameter to convert the variant date value to the number of seconds since midnight, Jan. 1, 1970. This is not the same as converting date to an int using other built-in operators; that conversion yields the number of days since midnight Dec. 31, 1899.

Important: See also Ext.SetCompatibilityVersion().

Return

Type Description

Variant

Returns the int 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