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!
nlapiAddMonths function
Hi there,
I'm having problems using the nlapiAddMonths function. If I use it this way
endDate = nlapiAddMonths(startDate, monthsToAdd);
where startDate is a valid Date and 'monthsToAdd' is an integer, I get the error message
'TypeError: getFullYear is not a function.'
I haven't got 'getFullYear' anywhere in the script so I'm assuming it's something that's called by nlapiAddMonths...
Any comments would be appreciated...
Cheers
Sion
0