PHP date() formatting
<p>I'm trying to format my date like YYYY-MM-DD. </p>

<p>I'm doing this:</p>

<pre><code> $dateAdded = date(Y-m-d);
</code></pre>

<p>So for today, it should say 2011-05-07, but it keeps returning 0000-00-00. Any help?</p>
