---
title: currentDate()
framework: avfoundation
role: symbol
role_heading: Instance Method
path: avfoundation/avplayeritem/currentdate()
---

# currentDate()

Returns the current time of the item as a date.

## Declaration

```swift
nonisolated func currentDate() -> Date?
```

## Return Value

Return Value The current time of the item as a date, or nil if there isn’t a mapped date for the item.

## Discussion

Discussion The system calculates this value from the EXT-X-PROGRAM-DATE-TIME tag.

## See Also

### Accessing timing information

- [currentTime()](avfoundation/avplayeritem/currenttime().md)
- [duration](avfoundation/avplayeritem/duration.md)
- [timebase](avfoundation/avplayeritem/timebase.md)
