---
title: dateFormatter
framework: tabulardata
role: symbol
role_heading: Instance Property
path: tabulardata/csvwritingoptions/dateformatter
---

# dateFormatter

A closure that maps dates to their string representations.

## Declaration

```swift
var dateFormatter: (Date) -> String { get set }
```

## Discussion

Discussion Defaults to ISO 8601 encoding.
