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
 
ExcelFile Viewer
DBISAM Viewer
Paradox Password Recovery
Paradox Viewer
Mail parser (ActiveX)
SMMsg suite
Viewer for TNEF-files (winmail.dat)
SMDBGrid
DBExport tools
Database Information Manager
 
 


Contact to webmaster

 

Borland Software Code Gear Scalabium Delphi tips

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

SMExport advertising