title: getTimestamp() - Fatal Error when call to a member function
body: <p>I would like to convert the following string to datetime:</p>
  
  <pre><code>&lt;?php
  $t = '2017-12-22T11:46:21.647+00:00';
  
  $date = date_create_from_format('d/M/Y:H:i:s', $t);
  print_r($date-&gt;getTimestamp());
  </code></pre>
  
  <p>However, I get the following error:</p>
  
  <pre><code>Fatal error: Call to a member function getTimestamp() on a non-object in /home/ubuntu/workspace/src/t02-convertDateTime.php on line 5
  </code></pre>
  
  <p>Any suggestions why?</p>