Discussions
Read on for the latest updates including:
• Agenda Builder launch
• SuiteWorld On Air registration
• New NetSuite Prompt Studio Contest
• And more!
Check out this thread to learn more!
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