update and test the date