title: Auto insert date and time in form input field?
body: <p>Using javascript, how can we auto insert the current DATE and TIME into a form input field.</p>
  
  <p>I'm building a "Problems" form to keep track of user submitted complaints about a certain service. I'm collecting as much info as possible. I want to save the staff here from having to manually enter the date and time each time they open the form.</p>
  
  <p>I have this snippet of code:</p>
  
  <pre><code>&lt;input id="date" name="date" value="javascript:document.write(Date()+'.')"/&gt;
  </code></pre>
  
  <p>but it's not working.</p>
  
  <p>many thanks for any help.</p>