[Overview][Constants][Procedures and functions] | Reference for unit 'dateutils' (#rtl) |
Return the previous day.
Source position: dateutil.inc line 109
function Yesterday: TDateTime; |
Previous day as TDateTime.
Yesterday returns yesterday's date. Yesterday is determined from the system clock, i.e. it is Today -1.
|
Return the current date |
|
|
Return the next day |
Program Example18; { This program demonstrates the Yesterday function } Uses SysUtils,DateUtils; Begin Writeln(FormatDateTime('"Today is " dd mmmm yyyy',Today)); Writeln(FormatDateTime('"Yesterday was " dd mmmm yyyy',Yesterday)); End.
No notes exist for this page yet.