title: Cannot Convert System.Datetime to string error
body: <p>I have this code, but I get an error: </p>
  
  <blockquote>
    <p>Cannot convert'System.DateTime' to 'string'. </p>
  </blockquote>
  
  <p>I'm trying to fetch only time part from a date as <code>HH:MM</code> format.</p>
  
  <pre><code>IFormatProvider provider = CultureInfo.InvariantCulture;
  
  q.CIP_START_TIME = DateTime.ParseExact(q.CIP_START_TIME, "hhmm", provider);
  q.CIP_END_TIME = DateTime.ParseExact(q.CIP_END_TIME, "hhmm", provider);
  q.CIP_VRB_TIME = DateTime.ParseExact(q.CIP_VRB_TIME, "hhmm", provider);
  </code></pre>