Yesterday

Return the previous day.

Declaration

Source position: dateutil.inc line 110

  function Yesterday : TDateTime;

Description

Yesterday returns yesterday's date. Yesterday is determined from the system clock, i.e. it is Today -1.

See also

Name Description
Today Return the current date
Tomorrow Return the next day

Example

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.