title: Format date in a new MongoDB driver for PHP
body: <p>How can I format a date in new MongoDB driver. This is what var_dump returns:</p>
  
  <p><code>object(MongoDB\BSON\UTCDateTime)#152 (1) { ["milliseconds"]=&gt; int(1467565836000) }</code></p>
  
  <p>When I try to access to milliseconds I get the following:</p>
  
  <p><code>Undefined property: MongoDB\BSON\UTCDateTime::$milliseconds</code></p>
  
  <p>I'm using a Yii2 framework.</p>