dateFormat
The date format string used by the receiver.
Declaration
var dateFormat: String! { get set }Discussion
See Data Formatting Guide for a list of the conversion specifiers permitted in date format strings.
You should only set this property when working with fixed format representations, as discussed in Working With Fixed Format Date Representations. For user-visible representations, you should use the dateStyle and timeStyle properties, or the setLocalizedDateFormatFromTemplate(_:) method if your desired format cannot be achieved using the predefined styles; both of these properties and this method provide a localized date representation appropriate for display to the user.