I need to find \"yesterday\'s\" date in this format MMDDYY in Python.
MMDDYY
So for instance, today\'s date would be represented like this: 111009
I ca
Could I just make this somewhat more international and format the date according to the international standard and not in the weird month-day-year, that is common in the US?
from datetime import datetime, timedelta yesterday = datetime.now() - timedelta(days=1) yesterday.strftime('%Y-%m-%d')