datetime objects format,print(mydate.strftime('%Y-%m-%d'))