title: When converting a JSON DateTime to a JavaScript date it is showing as 1 day previous than the local timezone
body: <p>I am making an AJAX request like the following:</p>
  
  <pre><code>$.ajax({
      type: 'POST',
      url: '@Url.Action("GetExpirationDates", "Products")',
      data: data,
      dataType: 'json',
      success: function (data) {
      var dateArray = data.map(function (date) {
          var d = new Date(date);
          return d.toLocaleDateString();
      });
  });
  </code></pre>
  
  <p>Here is what <code>data</code> looks likes:</p>
  
  <blockquote>
    <p>2016-02-25T00:00:00,2016-03-25T00:00:00,2016-04-25T00:00:00</p>
  </blockquote>
  
  <p>It seems that as soon as I do <code>new Date(date)</code> each one of these dates has a chance of showing as</p>
  
  <blockquote>
    <p>2/24/2016, 3/24/2016, 4/24/2016</p>
  </blockquote>
  
  <p>(one day less than it should be) depending on what the local time is. I am aware that this is most likely due to the way JavaScript handles timezones. I am wondering how to go about fixing it.</p>