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!
Stay in the Know
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Please note that on Friday, March 20, 2026, at 8:00 PM Pacific time, our Case Management System will undergo a scheduled maintenance for approximately 4 hours. During this time, case creation via SuiteAnswers will be unavailable and inbound calls will be routed to Customer Service.
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