change date type