fn merge_datestyle_value<T>( value: Option<T>, new_value: Option<T>, ) -> Result<Option<T>>where T: PartialEq,