---
url: /flow/guide/scripting-reference/functions/datetime/incday.md
---

# IncDay

## Declaration

`function IncDay(const AValue: TDateTime; const ANumberOfDays: Integer): TDateTime;`

### Example

```pascal
procedure OnMapEvent(var Value:Variant);
begin
  Value := IncDay(Date, 10); //returns a date incremented by 10 days.
end;
```

## Description

Returns the given date incremented by the number of days given.
