clean up time and date hndling