title: How to set only Date in DataTable Column of Type DateTime WEB
body: <p><img src="https://i.stack.imgur.com/K6RVF.png" alt="enter image description here">Hi All,</p>
  
  <p>My Question is simple but please keep in mind I'm not binding it to any grid or any of ASP.NET control I have my own grid control and I want to keep it as a DateTime Column for sorting purpose. </p>
  
  <p>I'm creating DataTable With Column Type DateTime.</p>
  
  <pre><code>DataTable data = new DataTable();
  data.Columns.Add("Invoice Date", typeof(DateTime));
  DataRow dr = data.NewRow();
  dr[0] = DateTime.Now;
  
  //Adding filled row to the DataTable object
  dataTable.Rows.Add(dr);
  </code></pre>
  
  <p>When the Value is shown on ASP.NET page
  it is show something like this:</p>
  
  <pre><code>"2/28/2011 12:00:00 AM"
  </code></pre>
  
  <p>I have 2 columns like this, In 1 column I want to show just date and in other column i want to show date as "Dec 2011", these formats can be achieved if i use DataColumn with type string but in that case sorting is not working properly. </p>
  
  <p>Please help.</p>
  
  <p>Thanks. </p>