set the datetimepicker value to retrieved value from sqldatareader.getdatetime
<p>I have a datetime column in my table and when I retrieve that value through <code>sqldatareader.getdatetime</code> function the value is not set to the datetime picker.</p>

<p>This is my code</p>

<pre><code>dateTimePicker2.Value = read.GetDateTime(0); 
</code></pre>
