title: "Number Expected" Error in IE 11 with .toLocalString()/.toISOString()
body: <p>I'm getting the error "Number expected" at the line:</p>
  
  <pre><code>new Date($('#itemOpenDate').val()).toISOString();
  </code></pre>
  
  <p>where $('#itemOpenDate').val() is a string representing a date, e.g. "8/11/2016", <strong>in IE 11 only</strong> (tests fine in Chrome, Firefox, and Safari). </p>
  
  <p>I've narrowed it down to how #itemOpenDate is populated. See the below code. I get the error with:</p>
  
  <pre><code>('#itemOpenDate').val(new Date("8/2/2016").toLocaleString());
  </code></pre>
  
  <p>but the following works fine (even in IE 11):</p>
  
  <pre><code>$('#itemOpenDate').val(new Date("8/2/2016").toDateString());
  </code></pre>
  
  <p>Of course, I want the format .toLocaleString provides. Any ideas?</p>
  
  <p>Code to reproduce:</p>
  
  <pre><code>&lt;!doctype html&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;title&gt;&lt;/title&gt;
  &lt;link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css" &gt;
  &lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"&gt;&lt;/script&gt;
  &lt;script src="https://code.jquery.com/ui/1.11.4/jquery-ui.js"&gt;&lt;/script&gt;
  &lt;script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/js/bootstrap.min.js"&gt;&lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;div class="container" role="main"&gt;
      &lt;form class="center-block form-horizontal"&gt;
          &lt;div class="form-group"&gt;
              &lt;label for="itemOpenDate" class="control-label"&gt;Open Date:&lt;/label&gt;
              &lt;input type="text" class="form-control input-lg" id="itemOpenDate"&gt;
          &lt;/div&gt;
  
          &lt;div class="form-group"&gt;
              &lt;button id="updateItemButton"  title="Update Item" type="button" class="btn btn-primary btn-lg btn-block"&gt;Update&lt;/button&gt;
          &lt;/div&gt;
      &lt;/form&gt;
  &lt;/div&gt;
  
  &lt;script type="text/javascript"&gt;
  
  $(document).ready(function () {
  
  $("#itemOpenDate").datepicker();
  
  getPunchlistItem();
  
  $("#updateItemButton").click(function () {
      updatePunchlistItem();
  });
  });
  
  function getPunchlistItem(myPLItemID) {
  $('#itemOpenDate').val(new Date("8/2/2016").toLocaleString());  //  error
  $('#itemOpenDate').val(new Date("8/2/2016").toDateString());  //  no error
  }
  
  function updatePunchlistItem() {
  var myOpenDate = new Date($('#itemOpenDate').val()).toISOString();
  console.log(myOpenDate);
  }
  &lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>