Scalabium Software

SMExport advertising
Knowledge for your independence'.
Home Delphi and C++Builder tips


#3: Convert from Double to DateTime

In Delphi we can cast the double value as datetime:

var
  dbl: Double;
  dt: TDateTime;
begin
  dbl := 65985.3333;
  dt := dbl;
end;

But in .NET we need call the FromOADate method for DateTime class:

  Double dbl = 65985.3333;
  DateTime dt = DateTime.FromOADate(dbl)


Published: December 16, 2009

See also
 
Clarion Viewer
DBExport tools
Metafile Convert
SMDBGrid
Excel Web-stream
Paradox Viewer
Mail parser (ActiveX)
Excel Reader (dll)
SMReport
ExcelFile Viewer
 
 


Contact to webmaster

 

Borland Software Code Gear Scalabium Delphi tips

Copyright© 1998-2025, Scalabium Software. All rights reserved.
webmaster@scalabium.com

SMExport/SMImport suites