title: VBA string with milliseconds to date
body: <p>I have a string in the form <code>"yyyy-mm-dd hh:mm:ss.mmm"</code> (where the end is milliseconds)</p>
  
  <p>I'd like to convert it to a number, preferably a <code>Date</code>, which preserves all the information</p>
  
  <p>I've tried <code>CDate()</code>, eg.</p>
  
  <pre><code>Dim dateValue As Date
  dateValue = CDate("2017-12-23 10:29:15.223")
  </code></pre>
  
  <p>But get a type mismatch error</p>