Improved Date checking.