title: How can I get today's timestamp in PHP
body: <p>I tried </p>
  
  <pre><code>$dtToday = DateTime::createFromFormat('Y-m-d', date('Y-m-d'));
  </code></pre>
  
  <p>but when I output it</p>
  
  <pre><code>die($dtToday-&gt;format('d M Y g:i:s a'));
  </code></pre>
  
  <p>I still get the time eg "22 Jan 2011 4:53:59 pm". Why is that? </p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>Ah... many people misunderstood me, my bad, I forgot to point out the main point. I created the date with just the date portion, I don't want the time. So I'd expect something like </p>
  
  <pre><code>22 Jan 2011 12:00:00 am
  </code></pre>