Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
Add 6 months to expected close
Anyone know how to add six months to the expected close date via Script. I have tried to do this on the Page Init and can get the date value. However it is not in the right format. This works and puts the date that I want in the field but the format is all wrong. Any help on what function to use or how to do this would be great. Thanks.
var expClosed = new Date()format;
var currentMonth = expClosed.getDate();
expClosed.setDate(currentMonth + 180);
alert(expClosed);
nlapiSetFieldValue('expectedclosedate',expClosed) ;
0