check the date