Python работает с объектами даты

Yes, the strftime() method returns a string representing date and time using 
date, 
time or 
datetime object.
Powerful Penguin