test for time and date