Is there a way to extract month and day using isoformats? Lets assume today's date is March 8, 2013.
>>> d = datetime.date.today()
>>> d.month
3
>>> d.day
8
I want:
>>> d = datetime.date.today()
>>> d.month
03
>>> d.day
08
I can do this by writing if statements and concatenating a leading 0 in case the day or month is a single digit but was wondering whether there was an automatic way of generating what I want.