---
title: "advanced(by:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/date/advanced(by:)"
---

# advanced(by:)

Returns a date offset the specified time interval from this date.

## Declaration

```swift
func advanced(by n: TimeInterval) -> Date
```

## Parameters

- `n`: The time interval offset.

## Return Value

Return Value A date offset the specified time interval from this date.

## See Also

### Adding or Subtracting a Time Interval

- [addTimeInterval(_:)](foundation/date/addtimeinterval(_:).md)
- [addingTimeInterval(_:)](foundation/date/addingtimeinterval(_:).md)
- [+(_:_:)](foundation/date/+(_:_:).md)
- [+=(_:_:)](foundation/date/+=(_:_:).md)
- [-(_:_:)](foundation/date/-(_:_:).md)
- [-=(_:_:)](foundation/date/-=(_:_:).md)
