---
title: formattingContext
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/dateformatter/formattingcontext
---

# formattingContext

The capitalization formatting context used when formatting a date.

## Declaration

```swift
var formattingContext: Formatter.Context { get set }
```

## Discussion

Discussion The formatting context allows the formatter to apply appropriate capitalization depending on how the how the string will be used, and whether the locale makes capitalization distinctions.

## See Also

### Managing Formats and Styles

- [dateStyle](foundation/dateformatter/datestyle.md)
- [timeStyle](foundation/dateformatter/timestyle.md)
- [dateFormat](foundation/dateformatter/dateformat.md)
- [setLocalizedDateFormatFromTemplate(_:)](foundation/dateformatter/setlocalizeddateformatfromtemplate(_:).md)
- [dateFormat(fromTemplate:options:locale:)](foundation/dateformatter/dateformat(fromtemplate:options:locale:).md)
