ImageEn

TDateTime

TDateTime

Declaration

TDateTime = type Double;

Description

Represents a date and time value as a floating point number:
The integer part represents the number of days since 30 December 1899
The fractional part represents the time of day as a fraction of 24 hours

See Also

VCL TDateTime Documentation
IEFileSetDate
IEGetFileDetails

Example

// Get the current date and time
var
  dt: TDateTime;
begin
  dt := Now();
  ShowMessage( Format( 'Date: %s  Time: %s', [ DateToStr( dt ), TimeToStr( dt ) ]));
end;