Scalabium Software

SMExport/SMImport suites
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
 
SMMsg suite
Viewer for MS Outlook Messages
SMReport
Database Information Manager
Viewer for TNEF-files (winmail.dat)
dBase Viewer
Clarion Viewer
SMImport suite
ABA Spreadsheet Convert
Word Web-stream
 
 


Contact to webmaster

 

Borland Software Code Gear Scalabium Delphi tips

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

SMExport advertising