work with python date objects instead of isoformats