The fastest way to convert a long list of date

loredana.pier at gmail.com loredana.pier at gmail.com
Sun Feb 8 07:46:43 EST 2009


If I want to convert a single date format I can do:

import datetime, dateutil.parser
d = dateutil.parser.parse('2008-09-26)
print d.strftime('%A %d, %b %y' )

but if I want convert a long list of time how can do it in the fastest
way?
for example:
from ['2008-09-26’, '2008-09-28’, '2008-09-29’,.............]
to [’26 sep’,’28 sep’,’29 sep’,................]

Thank you

Loredana



More information about the Python-list mailing list