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!
Timezones in 2.0
var localDate = format.format({value:new Date(), type: format.Type.DATETIMETZ, timezone: format.Timezone.AMERICA_CHICAGO})
log.debug("new date ",localDate) -> 10/1/2017 8:57:29 pm
so far so good the right date string is displayed
let's convert it to a date object as per suiteanswer https://netsuite.custhelp.com/app/answers/detail/a_id/61223
var localDateObj = format.parse({value:localDate, type: format.Type.DATETIME, timezone: format.Timezone.AMERICA_CHICAGO})
log.debug("new date 2",localDateObj) -> 2017-10-02T01:57:29.000Z
ok didnt work lets try
var localDateObj = format.parse({value:localDate, type: format.Type.DATETIMETZ, timezone: format.Timezone.AMERICA_CHICAGO})
log.debug("new date 2",localDateObj) -> 2017-10-02T01:57:29.000Z