Sign in Join
FPDoc Onlineexperiment

IsToday function

In unit DateUtils

Check whether a given date is today.

Declaration

pascal
function IsToday(const AValue: TDateTime): Boolean

Arguments

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

pascal
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.