Instance Property


The strategy used when encoding dates as part of a JSON object.


var dateEncodingStrategy: JSONEncoder.DateEncodingStrategy


The default strategy is the JSONEncoder.DateEncodingStrategy.deferredToDate strategy.

See Also

Encoding Dates

enum JSONEncoder.DateEncodingStrategy

The formatting strategies available for formatting dates when encoding a date as JSON.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software