How do I prevent time entry for incorrect dates?