update data type for date