Pass date to date field instead of time

Fixes #49