Compare only dates without time

Fixes #681