modify the date type