FromDouble(Value: Double): DateTime;
Value. The real value that should be converted to date and time format.
The FromDouble method returns the date and time value obtained by conversion from the Double format.
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(38718, 39814));
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: