---
title: distantFuture
framework: foundation
role: symbol
role_heading: Type Property
path: foundation/nsdate/distantfuture
---

# distantFuture

A date object representing a date in the distant future.

## Declaration

```swift
class var distantFuture: Date { get }
```

## Return Value

Return Value An NSDate object representing a date in the distant future (in terms of centuries).

## Discussion

Discussion You can pass this value when an NSDate object is required to have the date argument essentially ignored. For example, the NSWindow method nextEvent(matching:until:inMode:dequeue:) returns nil if an event specified in the event mask does not happen before the specified date. You can use the object returned by distantFuture as the date argument to wait indefinitely for the event to occur. myEvent = [myWindow nextEventMatchingMask:myEventMask     untilDate:[NSDate distantFuture]     inMode:NSDefaultRunLoopMode     dequeue:YES];

## See Also

### Getting Temporal Boundaries

- [distantPast](foundation/nsdate/distantpast.md)
