convert datetimes to date for proper calculation
Merge pull request #878 from YaleSTC/876_for_master

resolves #876