[Overview][Constants][Procedures and functions][Index] |
Return the previous day.
Source position: dateutil.inc line 123
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.