Skip to content

IsToday

Check whether a given date is today.

Declaration

Source position: dateutil.inc line 112

  function IsToday(const AValue: TDateTime) : Boolean;

Description

IsToday returns True if AValue is today's date, and False otherwise.

See also

Name Description
IsSameDay Check if two date/time indications are the same day.
Today Return the current date
Tomorrow Return the next day
Yesterday Return the previous day.

Example

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.