title: Error message ".innerHTML is not a function"
body: <p>I'm trying to fill the date automatically in a table header, but all I get is </p>
  
  <blockquote>
    <p>".innerHTML is not a function"</p>
  </blockquote>
  
  <p>I've looked everywhere, and tried put my code at the top and bottom of the page, but nothing works. Help, please!</p>
  
  <pre><code>window.onload = function() {
    var currentTime = new Date();
    var month = currentTime.getMonth() + 1;
    var day = currentTime.getDate();
    var year = currentTime.getFullYear();
    document.getElementById("dated").innerHTML(month + "/" + day + "/" + year);
  };
  </code></pre>