w3resource

Python: strftime()

strftime()

The strftime() function returns a string representing the date, controlled by an explicit format string. Format codes referring to hours, minutes or seconds will see 0 values.

Syntax:

date.strftime(format)

Complete list of formatting with examples:


Download the Notebook from here.

Test your Python skills with w3resource's quiz



Become a Patron!

Follow us on Facebook and Twitter for latest update.

It will be nice if you may share this link in any developer community or anywhere else, from where other developers may find this content. Thanks.

https://www.w3resource.com/python/python-strftime.php