Python: Converting legacy string dates to dates

Posted by Eric on Stack Overflow See other posts from Stack Overflow or by Eric
Published on 2010-12-24T20:24:08Z Indexed on 2010/12/24 20:54 UTC
Read the original article Hit count: 279

Filed under:

We have some legacy string dates that I need to convert to actual dates that can be used to perform some date logic. Converting to a date object isn't a problem if I knew what the format were! That is, some people wrote 'dd month yy', othes 'mon d, yyyy', etc.

So, I was wondering if anybody knew of a py module that attempts to guess date formats and rewrites them in a uniform way?

Any other suggestions?

Thanks! :)

Eric

© Stack Overflow or respective owner

Related posts about python