If I have two dates (ex. \'8/18/2008\' and \'9/26/2008\'), what is the best way to get the number of days between these two dates?
\'8/18/2008\'
\'9/26/2008\'
It also can be easily done with arrow:
arrow
import arrow a = arrow.get('2017-05-09') b = arrow.get('2017-05-11') delta = (b-a) print delta.days
For reference: http://arrow.readthedocs.io/en/latest/