I have a string field witch is a date scraped from internet and reads like this:
 "Lun Ene 27, 2014 9:52 am", "Mar Feb 11, 2014 5:38 pm",...
Lun= day of week (lunes/monday) Ene = month (enero/january)
I need to enter them in a mysql table, in a datetime field.
'YYYY-MM-DD HH:MM:SS'
I imagine it is a very common issue and was wondering if someone already have a script to do it or could point out where I could look for...
Thanks in advance!
datetimefor working with date/time data in Python.strptimeandstrftimeLunis "Lunes" = "Monday", andMaris "Martes" = "Tuesday". The months seem to be too "Enero" = "January" and "Febrero" = "February".