title: Insert ISODate in Mongodb with milliseconds
body: <p>I'm running PHP 7 with the php_mongodb-1.2.2-7.0-nts-vc14-x64 driver.</p>
  
  <pre><code>$ar = new \MongoDB\BSON\UTCDateTime(strtotime('2017-07-27 06:17:25.123000') * 1000);
  </code></pre>
  
  <p>Output of above statement is:</p>
  
  <blockquote>
    <p>ISODate("2017-07-27T06:17:25.000+0000")</p>
  </blockquote>
  
  <p>but I need milliseconds also like:</p>
  
  <blockquote>
    <p>ISODate("2017-07-27T06:17:25.123+0000")</p>
  </blockquote>
  
  <p>Since I'm so new I can't seem to figure out how to fix this.</p>