Delphi Programming RTL Reference|By Category|Alphabetically|By Unit
Delphi Programming RTL Reference|By Category|Alphabetically|By Unit
type TDateTime = type Double;
function Now: TDateTime;
Returns the current system date and time.
The integral part of a TDateTime value is the number of days that have passed since 12/30/1899. The fractional part of a TDateTime value is fraction of a 24 hour day that has elapsed.
To find the fractional number of days between two dates, simply subtract the two values. Likewise, to increment a date and time value by a certain fractional number of days, simply add the fractional number to the date and time value.
ShowMessage('Now is ' + DateTimeToStr(Now));
|
DateTimeToStr,
DecodeDate
Date
|
Free Delphi code snippet inside every Delphi Newsletter! |
|
|
|
Got some code to share? Got a question? Need some help? |
|
|