Working with Dates in python is actually quite simple once you get a hang of all the possible options out there.  The datetime objects are pretty robust, but I find myself only doing a handful of operations on dates in the applications I build.

Below I’ll embed all the gists of my most common date functions in Python.

 

Getting the Difference Between Two Dates (in # of days)