php 101 DateTime using atom format
<p>I'm trying to use the DateTime class to output the current time in DateTime::ATOM format.</p>

<p>I'm not sure if I'm even using it correctly. Or do I have to import a library or maybe turn on a wamp php module.</p>

<p>I'm getting "syntax error, unexpected T_NEW" error</p>

<p>here is the code:</p>

<pre><code>&lt;?php
function d()
{

     $df =  new DateTime(DateTime::ATOM);
    echo $df;
}
</code></pre>

<p>?></p>
