strftime
date, datetime, and time objects all support a strftime(format) method to create a string representing the time specified by the format string.