---
title: connectedDate
framework: networkextension
role: symbol
role_heading: Instance Property
path: networkextension/nevpnconnection/connecteddate
---

# connectedDate

The date and time when the connection status changed to NEVPNStatusConnected.

## Declaration

```swift
var connectedDate: Date? { get }
```

## Discussion

Discussion This property contains the date and time when the connection status changed to NEVPNStatusConnected after previously being set to NEVPNStatusDisconnected. This property is set to nil whenever the status changes to NEVPNStatusDisconnected.

## See Also

### Getting VPN connection status

- [manager](networkextension/nevpnconnection/manager.md)
- [status](networkextension/nevpnconnection/status.md)
- [NEVPNStatus](networkextension/nevpnstatus.md)
