title: jquery find previous 12 months date from given date
body: <p>Here , In jquery I am trying to find previous 12 month date from given date. but, the previous 12 months dates are wrong. </p>
  
  <pre><code>&gt;     var now = new Date();
  &gt;     var months = new Array( "January", "February", "March", "April", "May","June", "July", "August", "September", "October", "November",
  &gt; "December");
  &gt;     for(var i=0; i&lt;=11;i++){
  &gt;     var past = now.setMonth(now.getMonth() -i);
  &gt;     console.log(months[now.getMonth()]+' '+now.getFullYear());
  &gt;     }
  </code></pre>
  
  <p>I am getting below output.</p>
  
  <pre><code>June 2016
  May 2016
  March 2016
  December 2015
  August 2015
  March 2015
  September 2014
  February 2014
  June 2013
  September 2012
  November 2011
  December 2010
  </code></pre>