clean up date impl