title: Subtract hours from date and time
body: <p>Could someone help me with this. I need to finish something for a schoolproject which we are displaying tonight and I have to subtract 2 hours from this code. Javascript is totally not my thing.</p>
  <pre><code>&lt;a href=&quot;urltopage.php&quot;&gt;&lt;span id=&quot;datetime&quot;&gt;&lt;/span&gt;&lt;/a&gt;
  
  &lt;script&gt;
  var dt = new Date();
  document.getElementById(&quot;datetime&quot;).innerHTML = dt.toLocaleString();
  &lt;/script&gt;
  </code></pre>
  <p>I have no idea how to change this. Thanks in advance.</p>
  <p>Regards,
  Justin</p>