The Python strftime function is a part of the datetime, time, and pandas module, and you must import these libraries. This article shows how to use strftime to parse datetime objects, a table of available formatting codes, and an example of each format option.