To get date I use this block:
currentDate = date.today()
today = currentDate.strftime('%m/%d/%Y')
It returns me this format 12/22/2014 or 01/02/2015 Then I have to compare to string from the file (note: I can't change the string) 12/22/2014 or 1/2/2015 and I use:
if l[0] == today:
In second case it obviously failed. My question: how could I change strftime() in order to return only one charachter for month and day when it has preceeding zero?