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

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -