ID EN
Datetime

strftime

Python 3.11

Return a string representing the date, controlled by an explicit format string. Format codes referring to hours, minutes or seconds will see 0 values. See also strftime() and strptime() Behavior and date.isoformat().

Syntax

PYTHON
date.strftime(format)

See Also

strftime() and strptime() Behavior date.isoformat()