title: Javascript date undefined error
body: <p>this is my code and I'm getting "Uncaught TypeError: undefined is not a function" what am i doing wrong?</p>
  
  <pre><code>var myDate = new Date().setDate(17);
  document.getElementById("result").innerHTML = myDate.getDate();
  </code></pre>