Given that I start with a string, like '3/6/2011'
which is month/day/year, and the current day is 3/13/2011 (7 days later), how can I find the number of years that have passed since that time (7/365 = 0.0191780821917808
) in Python?
Note that I want to be able to handle any input date. Not any format though, you can assume the format above.