title: Trouble with Javascript Date
body: <p>I know my attempt it terrible, but this is what I got. I'm trying to get the current date to display in this fashion: Monday, 19 February 2018. Can anyone fix this mess into a working Javascript code?</p>
  
  <pre><code>var dayname = new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");
  
  var monthname = new Array("January","February","March","April","May","June","July","August","September","October","November", "December");
  
  var d=new Date();
  var today = dayname[d.getDay()] + ", " + d.getDate() + " " + monthname[d.getMonth()] + " " + d.getFullYear();
  document.getElementById('currentdate").innerHTML = today;
  </code></pre>