using datetime
datetime
import datetime x = datetime.date.today() y = datetime.date(2014, 7, 11) diff = x-y print(diff.days)
output
2392
1.4m articles
1.4m replys
5 comments
57.0k users