title: Parsing a string to "year-month-day" format in C#
body: <p>Im using a webservice that needs a datetime in the following format "2010-12-24"</p>
  
  <p>I have the string to parse in the same "way" but as said, its a String.</p>
  
  <pre><code>string myDate = "2010-12-24";
  </code></pre>
  
  <p>How can i parse it so that it gets the same format?</p>
  
  <p>Have tried using : <code>DateTime.Parse(mystring);</code></p>
  
  <p>but this gives me a colon separated format.</p>