System.DateUtils.IncDay

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function IncDay(const AValue: TDateTime;
const ANumberOfDays: Integer = 1): TDateTime;

C++

extern DELPHI_PACKAGE System::TDateTime __fastcall IncDay(const System::TDateTime AValue, const int ANumberOfDays = 0x1);

Properties

Type Visibility Source Unit Parent
function public
System.DateUtils.pas
System.DateUtils.hpp
System.DateUtils System.DateUtils

Description

Returns a date shifted by a specified number of days.

IncDay returns the value of the AValue parameter, incremented by ANumberOfDays days. ANumberOfDays can be negative, to return a date N days previous.

The time of day specified by the AValue parameter is copied to the result.

See Also


Code Examples