rewrite date parts