title: Trim character from String
body: <p>I want to remove separater from Date </p>
  
  <pre><code>System.DateTime.Now.ToShortDateString()
  </code></pre>
  
  <p>returns <code>mm/dd/yyyy</code> as <code>4/13/2012</code>. then how  can i remove <code>'/'</code> from the string.</p>
  
  <p>I am converting date string to int32 as:</p>
  
  <pre><code>Convert.ToInt32(System.DateTime.Now.ToShortDateString().Trim(new char[]{'/'}));
  </code></pre>
  
  <p>but trim does not trim the character between the string. </p>
  
  <p>Any another better suggestion to do this will be appriciated.</p>
  
  <p>Thanks in advance.</p>