make resetDate function and test it