2-digit-year

How to parse string dates with 2-digit year?

How to parse string dates with 2-digit year? Question: I need to parse strings representing 6-digit dates in the format yymmdd where yy ranges from 59 to 05 (1959 to 2005). According to the time module docs, Python’s default pivot year is 1969 which won’t work for me. Is there an easy way to override …

Total answers: 6