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.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
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