System.DateUtils.IncWeek

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function IncWeek(const AValue: TDateTime;
const ANumberOfWeeks: Integer): TDateTime;

C++

extern DELPHI_PACKAGE System::TDateTime __fastcall IncWeek(const System::TDateTime AValue, const int ANumberOfWeeks = 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 weeks.

IncWeek returns the value of the AValue parameter, incremented by ANumberOfWeeks weeks. ANumberOfWeeks can be negative, to return a date N weeks previous.

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

See Also


Code Examples