Setting a Date value in Date type custom field in NetSuite and change the timezone

When we fetch a date value format from a custom field (Type is date) we get the format as “2022-07-13T07:00:00.000Z” ISO format. we have to convert this form into M/D/YYYY format. For that use this syntax below: Module: N/format var dateNeededByNew = rec.getValue({field:date}); // 2022-07-13T07:00:00.000Zvar formattedDateString = format.format({value : dateNeededByNew,type:format.Type.DATE //If we need time also… Continue reading Setting a Date value in Date type custom field in NetSuite and change the timezone