Advertisement
dwhitzzz

nextMonth Javascript

May 4th, 2016
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var today = new Date();
  2. var nextMonth = new Date(new Date(today).setMonth(today.getMonth()+8));
  3. console.log("today : "+today);
  4. console.log("nextMonth : "+nextMonth );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement