Revert "remove date checking"

This reverts commit 28548d8a88dda1ab33da798c6f0127cded98c22d.