title: Format DateTime in C#
body: <p>how can I format date to display in the following format 03-Feb-2011</p>
  
  <p>I tried this statement but it did not work properly</p>
  
  <pre><code>string.Format(visitDate.Value.ToShortDateString(), "dd-MMM-yyyy")
  </code></pre>