clean up date representation