title: How to properly add 1 month from now to current date in moment.js
body: <p>I read the documentation of moment.js that if you want to add 1 month from the current date time you use this code</p>
  
  <pre><code>var moment = require('moment');
  var futureMonth = moment().add(1, 'M').format('DD-MM-YYYY');
  </code></pre>
  
  <p>But the problem right now, it is not properly add the date correctly, for example
  let say the current date is 31/10/2015, explain in code</p>
  
  <pre><code>var currentDate = moment().format('DD-MM-YYYY');
  var futureMonth = moment().add(1, 'M').format('DD-MM-YYYY');
  
  console.log(currentDate) //  Will result --&gt; 31/10/2015
  console.log(futureMonth) //  Will result --&gt; 30/11/2015 
  </code></pre>
  
  <p>if you take a look at the current calendar time, 1 month from <code>31/10/2015</code> supposed to be <code>1/12/2015</code></p>
  
  <p>Could anyone give me some opinion on how to fix this problem.</p>
  
  <p>Thank you</p>