title: datetime strptime - set format to ignore trailing part of string
body: <p>I have a string with variable length and I want to give a format to <code>strptime</code> in order for the rest of the string to be ignored. Let me exemplify. I have something like</p>
  
  <pre><code>9/4/2013,00:00:00,7.8,7.4,9.53
  10/4/2013,00:00:00,8.64,7.4,9.53
  </code></pre>
  
  <p>and I want a format that makes the command <code>strptime(line,format)</code> work to read those lines. Something like <code>format='%d/%m/%Y,%H:%M:%S*'</code>, although I know that doesn't work. I guess my question is kind of similar to <a href="https://stackoverflow.com/questions/4053924/python-parse-date-format-ignore-parts-of-string">this one</a>, but no answer there could help me and my problem is a little worse because the full length of my string can vary. I have a feeling that <code>dateutil</code> could solve my problem, but I can't find something there that does the trick.</p>
  
  <p>I can probably do something like <code>strptime(''.join(line.split(',')[:2]),format)</code>, but I wouldn't want to resort to that for user-related issues.</p>