convert datetimes to date for proper calculation

Resolves #876