Can't get around this error: Call to undefined method DateTime::createFromFormat()
<p>I am trying to convert date formats in php.</p>

<p>The following code creates persistent errors</p>

<pre><code>$myDate = "31/12/1980";

$myDateTime = DateTime::createFromFormat('d/m/Y', "$myDate"); 

$newDate = $myDateTime-&gt;format('d M Y');

echo $newDate;
</code></pre>

<p>The line containing createFromFormat() keeps creating the error: " "call to undefined method".
This occurs both with my testing Apache server and the actual server, both running PHP 5.3+</p>

<p>Do I need to include or require additional files?
Please help - I am only a low-intermediate in php.</p>
