IsToday function
Check whether a given date is today.
Declaration
function IsToday(const AValue: TDateTime): BooleanArguments
AValue | Date to check, may contain a time part. |
Function result
True if
AValue is today,
False otherwise.Description
IsToday returns
True if
AValue is today's
date, and
False otherwise.See also
Example: ex20
Program Example20;
{ This program demonstrates the IsToday function }
Uses SysUtils,DateUtils;
Begin
Writeln('Today : ',IsToday(Today));
Writeln('Tomorrow : ',IsToday(Tomorrow));
Writeln('Yesterday : ',IsToday(Yesterday));
End.An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
