Skip to content

Glossary: Python Basics

strftime

Also written: .strftime(), isoformat, fromisoformat

A date method that shows a date in a style you choose using `%` codes like `%Y`, `%m`, `%d` and `%B`. `isoformat()` and `fromisoformat()` convert to and from the `YYYY-MM-DD` form.

Where the book teaches it

Related terms

date