removing time from datetime in c# and retaining datetime format
<p>How can I remove time from datetime and store the output in datetime format? I do not want to show the time.</p>

<p>Say I have </p>

<pre><code>string d = "2/27/2013 4:18:53 PM"
</code></pre>

<p>How can I store the output in a DateTime variable with only the date and not time.</p>

<p>I can use ToShortDateString() but then it return a string and not datetime.</p>

<p>My ultimate goal is to sort the date column chronologically which can only be done if all the entries are in datetime format and not string.</p>
