Unit 'DateUtils' Package
[Overview][Constants][Classes][Procedures and functions][Index] [#rtl]

Tomorrow

Return the next day.

Declaration

Source position: dateutil.inc line 126

function Tomorrow: TDateTime;

Function result

Next day as TDateTime.

Description

Tomorrow returns tomorrow's date. Tomorrow is determined from the system clock, i.e. it is Today +1.

See also

Today

  

Return the current date.

Yesterday

  

Return the previous day.

Example

Program Example19;

{ This program demonstrates the Tomorrow function }

Uses SysUtils,DateUtils;

Begin
  Writeln(FormatDateTime('"Today is" dd mmmm yyyy',Today));
  Writeln(FormatDateTime('"Tomorrow will be" dd mmmm yyyy',Tomorrow));
End.

Documentation generated on: Jul 24 2023