def date_to_string(date)
      precision = date.precision
      if CarbonDate::Date::PRECISION.include? precision # Call me paranoid: whitelist the available functions
        public_send(precision, date)
      else
        raise StandardError.new("Unrecognized precision: #{precision}")
      end
    end
def date_to_string(date)
      precision = date.precision
      if CarbonDate::Date::PRECISION.include? precision # Call me paranoid: whitelist the available functions
        public_send(precision, date)
      else
        raise StandardError.new("Unrecognized precision: #{precision}")
      end
    end
Formats a CarbonDate::Date object as a human-readable string