Revert "change from datetime to date"

This reverts commit b3ee8e75f6a7b38590ac8d09eb0ce34f47162412.