Change date type