title: Set values in input type date and time in javascript
body: <p>I have two input fields:</p>
  <pre class="lang-html prettyprint-override"><code>&lt;input type=&quot;date&quot; id=&quot;currentDate&quot;&gt;
  &lt;input type=&quot;time&quot; id=&quot;currentTime&quot;&gt;
  </code></pre>
  <p>How can I set these fields to the current date/time?</p>