title: d3.js v4 timeParse() not working?
body: <p>I saw a lot of examples doing the same, but the <code>d3.timeParse()</code> function just doesn't work as expected in my code and returns <code>null</code>.</p>
  
  <pre><code>let parseDate = d3.timeParse("%Y-%m-%d");
  
  let now = new Date();
  
  console.log(now)//returns js date object
  
  let parsedNow = parseDate(now);
  
  console.log(parsedNow) //returns null
  </code></pre>
  
  <p>See <a href="https://fiddle.jshell.net/L7hyqbfs/" rel="nofollow noreferrer">this fiddle</a> for running example.</p>
  
  <p>Any Ideas what I'm doing wrong here?</p>
  
  <p>Help would be greatly appreciated.</p>