Use proper datetime.date.

Hey @helenaschwartz I have a suggestion for your code.