Revert "Revert "remove date checking""

This reverts commit 732a89443c5bc94b63f05e344199de14b6e1e25e.