Converting a String to a DateTime variable?
<p>How can I convert a string "08:00" to a DateTime datatype?</p>

<p>Im trying to use it like this and I get error:</p>

<pre><code>public DateTime currentTime 
{
    get 
    { 
        return DateTime.TryParse(
            this.Schedule.Timetables.Max(x =&gt; x.StartTime), 
            currentTime); 
    } 
    set 
    { 
        currentTime = value; 
    }
}
</code></pre>

<p>/M</p>
