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.
Need help setting custom Date field with value from Customer.LastModifiedDate
Hello,
I am using the following script and in attempting to set a custom field (date format) with the following script I am receiving the error "TypeError: Cannot find function getFullYear in object 6/19/2015 1:01 pm. (custSubmit (1).js$3340248$sys#2976)" Can someone tell me what is wrong with my script? I have tried the 'datetime' and 'date' formats, checked my date settings in my preferences and still cannot get it to work. Any assistance is appreciated, I can't use the custom field as a string/text field since we need to use it for setting date criteria to report on.
If it helps at all, when setting var fmtDateModified = nlapiDateToString(parentDateModified, 'date') the debugger returns
I am using the following script and in attempting to set a custom field (date format) with the following script I am receiving the error "TypeError: Cannot find function getFullYear in object 6/19/2015 1:01 pm. (custSubmit (1).js$3340248$sys#2976)" Can someone tell me what is wrong with my script? I have tried the 'datetime' and 'date' formats, checked my date settings in my preferences and still cannot get it to work. Any assistance is appreciated, I can't use the custom field as a string/text field since we need to use it for setting date criteria to report on.
If it helps at all, when setting var fmtDateModified = nlapiDateToString(parentDateModified, 'date') the debugger returns
0