title: Get last 6 months from in Jquery
body: <p>How can I get the date range in jquery from current date, I have done following in java, need to replicate it in jquery</p>
  
  <pre><code>Datetime sixMonthsFromNow = Datetime.now().addMonths(-6);
  sortByQueryString = '&amp;fq=lastmodified:['+sixMonthsFromNow.format('yyyy-MM-dd\'T\'hh:mm:ss\'Z\'')+'+TO+NOW]';
  </code></pre>