title: D3 date parsing: Uncaught TypeError
body: <p>I'm trying to understand <a href="https://github.com/mbostock/d3/wiki/Time-Formatting" rel="nofollow">datetime parsing</a> in D3.js. </p>
  
  <p>Why isn't the following working? It keeps giving me <code>Uncaught TypeError: Object 2012-06-01 12:00:00+0000 has no method 'getFullYear</code>. </p>
  
  <pre><code>var parseDate = d3.time.format("%Y-%m-%d %H:%M:%S+%Z");
  var datestr = '2012-06-01 12:00:00+0000';
  
  console.log('d.datestr', datestr, typeof datestr);
  console.log(parseDate(datestr));
  </code></pre>
  
  <p>JSFiddle here: <a href="http://jsfiddle.net/EBj9Z/" rel="nofollow">http://jsfiddle.net/EBj9Z/</a></p>