DateTime.FromDouble

Syntax

FromDouble(Value: Double): DateTime;

Parameters

Value. The real value that should be converted to date and time format.

Description

The FromDouble method returns the date and time value obtained by conversion from the Double format.

Example

Add a link to the MathFin system assembly.

Sub UserProc;
Var
    d: DateTime;
Begin
    //38718 - corresponds to the date 01.01.2006
    //39814 - corresponds to the date 01.01.2009
    d := DateTime.FromDouble(Math.RandBetween(3871839814));
    Debug.WriteLine(d);
End Sub UserProc;

After executing the example the development environment console displays a random date and time value obtained by conversion from the Double format.

See also:

DateTime