title: Javascript Date.getTime() returns NaN in internet Explorer 11 only
body: <p>I have a below JavaScript function which returns <code>time</code> from the <code>full date</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 f() {
    var monthNames = ["Jan", "Feb", "Mar", "Apr", "May", "Jun",
      "Jul", "Aug", "Sept", "Oct", "Nov", "Dec"
    ];
    d = new Date();
    var utcOffset = -6;
    var utc = d.getTime() + (d.getTimezoneOffset() * 60000);
    var localDate = new Date(utc + (3600000 * (utcOffset + 1)));
    var fullDate = localDate.getDate() + ' ' + monthNames[localDate.getMonth()] + ' ' + localDate.getFullYear() + ' ' + localDate.toLocaleTimeString();
    var now = new Date(fullDate).getTime();
    return now;
  }</code></pre>
  </div>
  </div>
  </p>
  
  <p>In all browsers it returns expected output but not for Internet Explorer 11, as it returns <code>NaN</code>.</p>
  
  <p>Please suggest changes to get the expected output.</p>