Formatting and parsing dates

Dates often arrive as text from files or APIs and need to leave as text in reports. strftime turns a datetime into a formatted string. strptime goes the other way, turning a string into a datetime you can compute with.