move the date format code