How to get date difference(number of days) in python 3.x -
i have 2 date objects need subtract them number of days difference in python 3.x.
they dtype: objects type. how can difference?
here small example difference between 2 dates:
import datetime = datetime.date(2017, 6, 30) b = datetime.date(2017, 3, 21) c = a-b
and c = datetime.timedelta(101)
Comments
Post a Comment