title: Python - 'ValueError: time data '' does not match format '%d/%m/%Y'
body: <p>I have a .txt file and its contents is as follows:</p>
  
  <pre><code>---------------
  0,
  test1
  test@gmail
  19/12/2016
  ---------------
  </code></pre>
  
  <p>I'm attemping to read the date and compare it to the present one.</p>
  
  <p>Now, it gives me the message in the title, but I've tried to format the present date and the date I read from my file to fit <code>%d/%m/%Y</code>. so I suspect it's a reading-from-file problem, but I can't find my mistake.</p>
  
  <pre><code>present = datetime.now()  # Get current time
  print "Present time: ", present.strftime('%d/%m/%Y')  # Format present time
  
  with open("birthday.txt", 'r') as database:
      last_line = database.readline()[-1]
      while junk != last_line:
          junk = database.readline().strip('\n')
          name_bday = database.readline().strip('\n')
          mail_bday = database.readline().strip('\n')
          date_bday = database.readline().strip('\n')
  
          print junk
          print name_bday
          print mail_bday
          print date_bday
  
          list_date = time.strptime(date_bday, "%d/%m/%Y")
          date = datetime.fromtimestamp(mktime(list_date))
  
          if date == present:
              print "It's your birthday!"
          else:
              print "It's not your birthday."
  </code></pre>