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
Date type Script Parameters
When retrieving script parameters of type Date (runtime.getCurrentScript().getParameter), I would expect either a Date object or the String value (both datatypes it says it can return). For example, if I have 11/29/2016, I would expect either a raw Date object or ''11/29/2016". However, when I read a Date parameter, I am getting "2016-11-29T08:00:00.000Z" which is a string type. If I try to parse this with the format module, I am expecting a raw date object but instead, I get "2016-11-29T08:00:00.000Z" which is the same string I fed to it. Even passing in just "2016-11-29" returns the same string. This format
0