I'm trying to find the difference between these two dates or any other dates for that matter
a = '11-Feb-2003'
b = '28-Aug-2015'
I'm looking for a way (something not so manual/diy) to convert the months (Feb & August) into integers?
Should I create a dictionary?
To be even more specific I'd like to turn the dates into lists.
'11-Feb-2003' becomes [11, 2, 2003] = startdate
'28-Aug-2015' becomes [28, 8, 2015] = enddate
From there I can calculate the difference in number of days between the two by executing:
import datetime
datetime.date(enddate[2], enddate[1], enddate[0]) -
dateimdate(startdate[2], startdate[1], startdate[0])