help files
Z505 | PasWiki | FUQ | Search | Main Docs | API Guide



[Overview][Constants][Procedures and functions] Reference for unit 'dateutils' (#rtl)

Yesterday

Return the previous day.

Declaration

Source position: dateutil.inc line 109

function Yesterday: TDateTime;

Function result

Previous day as TDateTime.

Description

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

See also

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.

Notes

 No notes exist for this page yet. 





lufdoc, Powtils, fpc, freepascal, delphi, kylix, c/c++, mysql, cgi web framework docs, Z505