title: Date formatting using python
body: <p>To get date I use this block:</p>
  
  <pre><code>currentDate = date.today()
  today = currentDate.strftime('%m/%d/%Y')
  </code></pre>
  
  <p>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:</p>
  
  <pre><code>if l[0] == today:
  </code></pre>
  
  <p>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?</p>