title: Convert string to datetime in vb.net
body: <p>I have a datetime that looks like this:</p>
  
  <pre><code>201210120956
  ccyyMMDDhhmm
  </code></pre>
  
  <p>When I try this:</p>
  
  <pre><code>Dim convertedDate As Date = Date.Parse(DateString)
  Return convertedDate
  </code></pre>
  
  <p>I get back this:</p>
  
  <pre><code>#10/12/2012#
  </code></pre>
  
  <p>I'm losing the time on it.</p>
  
  <p>I've read this <a href="https://stackoverflow.com/questions/2030407/convert-string-to-datetime-vb-net">convert string to datetime vb.net</a> but when I use <code>datetime.ParseExact()</code> I get: </p>
  
  <blockquote>
    <p>cannot resolve symbol 'ParseExact'</p>
  </blockquote>
  
  <p>Is there a way to convert this to a date time without using substring? A straight conversion?</p>