Compare dates as dates (not strings). Fixes #356
Merge pull request #357 from projecthydra/fix_date_compare

Compare dates as dates (not strings). Fixes #356