title: JavaScript date and time formatting,
body: <p>I have read a lot of thread about the subject, but i'm not much into programming... i've made some tests but never acheive what i wanted.</p>
  
  <p>Here we have a html template we have to modify to suit our needs.</p>
  
  <p>here the code i have to edit:</p>
  
  <pre><code>&lt;p id="DATE"&gt;&lt;/p&gt;
  &lt;script&gt;
      var d = new Date();
      document.getElementById("DATE").innerHTML = d.toString();
  &lt;/script&gt;
  </code></pre>
  
  <p>Its giving me the date OK...but not i the format i want...
  the format i want is...  DD-MM-YYYY  HH:MM</p>
  
  <p>Simple has that :)</p>
  
  <p>Its been a couple of hours and i can't do it... Can anyone help with a code i just can copy/paste in my html file.</p>