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.
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