title: Python: Check if datetime is in correct format
body: <p>I am reading in a csv file, I'm trying to check if the date-time is in the correct format before displaying it. The date looks like this in the csv file is: 2005-04-05T04:00:01+00:00</p>
  
  <p>I can only get as far as after the plus sign. I might be missing something when i read the documentation.   </p>
  
  <pre><code>if datetime.datetime.strptime('2005-04-05T04:00:01+00','%Y-%m-%dT%H:%M:%S+%f'):
              print("This works, but not what i want")
  </code></pre>
  
  <p>Thanks.</p>