Set the Date field in Suite Script

In Suite Script 2.0, setting date is not as simple as setFieldValue() To fix this issue,Step 1: The developer should use the “N/format” module,Step 2:  format.format() method             format.format({value: DateVariableHere, type: format.Type.DATE}),Step 3:  set this value using  setValue() //============== Use the below code for the date to date field ================ Use the parse method to parse… Continue reading Set the Date field in Suite Script