I was trying to convert a date string to a valid date python format, but I got a erroneous date:
>from datetime import datetime
>mydate = '300413' # is 2013-04-30
>print datetime.strptime(mydate,'%d%m%Y')
>0413-02-01 00:00:00
How can I parse to a valid date, this date string?