title: Format object ToString
body: <p>How do I format the two strings <strong>Data</strong> and <strong>Somma</strong> in this context?</p>
  
  <pre><code> SqlConnection con = new SqlConnection(strConnString);
      con.Open();
      str = "select * from Pagamenti ORDER BY [Data] DESC";
      com = new SqlCommand(str, con);
      sqlda = new SqlDataAdapter(com);
      ds = new DataSet();
      sqlda.Fill(ds, "Pagamenti");
  
      for (int i = 0; i &lt; ds.Tables[0].Rows.Count; i++)
      {
          DropDownList1.Items.Add(ds.Tables[0].Rows[i]["Id"] +
              "   --|--   " + ds.Tables[0].Rows[i]["Data"].ToString() +
              "   --|--   " + ds.Tables[0].Rows[i]["Somma"]);
      }
      con.Close();
  </code></pre>
  
  <p>ToString() is not taking anything and I need respectively "dd/MM/yyyy" and "R #.###".</p>