title: JS Date&Time doesn't return anything
body: <p>I've created a javascript to show date&amp;time in Javascript, but it doesn't return anything
  I've tried a lot of advises, but nothing worked.</p>
  
  <p>HTML CODE</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>function startTime() {
      var today = new Date();
      var hr = today.getHours();
      var min = today.getMinutes();
      var sec = today.getSeconds();
      ap = (hr &lt; 12) ? "&lt;span&gt;AM&lt;/span&gt;" : "&lt;span&gt;PM&lt;/span&gt;";
      hr = (hr == 0) ? 12 : hr;
      hr = (hr &gt; 12) ? hr - 12 : hr;
      //Add a zero in front of numbers&lt;10
      hr = checkTime(hr);
      min = checkTime(min);
      sec = checkTime(sec);
      document.getElementById("clock").innerHTML = hr + ":" + min + ":" + sec + " " + ap;
      
      var months = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'];
      var days = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'];
      var curWeekDay = days[today.getDay()];
      var curDay = today.getDate();
      var curMonth = months[today.getMonth()];
      var curYear = today.getFullYear();
      var date = curWeekDay+", "+curDay+" "+curMonth+" "+curYear;
      document.getElementById("date").innerHTML = date;
      
      var time = setTimeout(function(){ startTime() }, 500);
  }
  function checkTime(i) {
      if (i &lt; 10) {
          i = "0" + i;
      }
      return i;
  }
     </code></pre>
  <pre class="snippet-code-css lang-css prettyprint-override"><code>div {
   margin
      border-radius:15px;
      color:#ecf0f1;
      text-align:center;
      font-size:70px
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>    &lt;div id="clock"&gt;&lt;/div&gt;
      &lt;div id="date"&gt;&lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Could I change this javascript code to show time from 5 different timezones?</p>