Same as date.strftime(). This makes it possible to specify a format string for a date object in formatted string literals and when using str.format(). See also strftime() and strptime() Behavior and date.isoformat().
Syntax
PYTHON
date.__format__(format)
See Also
date.strftime()dateformatted string literalsstr.format()strftime() and strptime() Behaviordate.isoformat()