title: ToLocaleDateString() workaround for IE & Chrome
body: <p>I was using a JS function to declare a var date that was the next available 1st day of the month. i.e. todays would be 11/01/2017(mm/dd/yyyy). The function was working perfectly however IE 11+ would not take it, and instead throw in some extra functions which the form would then reject as not being a valid date, however in Chrome it worked perfectly.</p>
  
  <p>Ive changed the code to the following, which works on both browsers..</p>
  
  <pre><code>//Calculate and assign next available 1st day of the month
   var date = new Date();
   firstDay = new Date(date.getFullYear(), date.getMonth()+1, 1);
   firstDay = (new Date(firstDay).toLocaleString('en-US').replace(/[^ -~]/g,''));  
  </code></pre>
  
  <p>however the output is: <code>11/1/2017,%2012:00:00%20AM..</code>. which is functionally correct as my form picks up the <code>"11/1/2017</code>" part, and ignores the rest, both on IE &amp; Chrome, however how can I change the above code so it will just remove the "<code>,%2012:00:00%20AM</code>"? Its just a sake of tidying up the URL which is passing along user-data</p>