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!
nlapiStringToDate
Can someone please help me with my understanding of nlapiStringToDate. In particular using a format datetimetz.
The documentation says that using a format of datetimetz when calling nlapiStringToDate returns the date in the time zone of the user's netsuite preference not the browser.
For example nlapiStringToDate('3/22/2013 10:00:00 AM','datetimetz') on the client side results in a date object with the timezone of the machine not the user preference.
On the server side the time zone of the resulting date object is always GMT -8 regardless of the user's netsuite time zone preference.
***UPDATE If the value is retrieved from a custom field of type datetime, the time portion of the resulting date is the correct time in the users timezone as set in their preferences but the date object is in the time zone of the server. After reading more about the javascript date object this seems by design.