title: jQuery ui Datepicker, add days in variable
body: <p>I am trying to add 3 days to the date I get from the jQuery Datepicker as a variable as I show in this example:</p>
  
  <pre><code>var dateSelected = fromDateInput.datepicker('getDate');
  var count = 3;
  
  var lol = dateSelected.setDate(dateSelected.getDate() + count);
  console.log(lol);
  </code></pre>
  
  <p>If I use the variable I will get this in the console for example: 1449615600000.</p>
  
  <p>If I do it like this:</p>
  
  <pre><code>var dateSelected = fromDateInput.datepicker('getDate');
  var count = 3;
  
  dateSelected.setDate(dateSelected.getDate() + count);
  console.log(dateSelected);
  </code></pre>
  
  <p>I will get the correct date (The date I select in the datepicker + 3 days) </p>
  
  <p>Why can't I use it in a variable?</p>