title: How to get three month ago date in javascript in the format as YYYYDDMM efficiently
body: <p>I know a way to do in java:</p>
  
  <pre><code>Calendar c5 = Calendar.getInstance();
  c5.add(Calendar.MONTH, -6);
  c5.getTime(); //It will give YYYYMMDD format three months ago.
  </code></pre>
  
  <p>Is there a way to do this in javascript. I know that I can use
  Date d = new Date(); parse it and do some code to get the format.
  But now I dont want to do parsing  and getting three month ago date.</p>