I get
time data \'19/Apr/2011:22:12:39\' does not match format \'%d/%b/%y:%H:%M:%S\'
when using datetime.strptime(\'19/Apr/2011:22:12:39\
datetime.strptime(\'19/Apr/2011:22:12:39\
You're checking for a 2 digit year ( %y ) instead of a four digit ( %Y )