I'm trying to set a date field on a custom record,...
# suitescript
m
I'm trying to set a date field on a custom record, and I keep getting an error. Using : processDate = new Date(); processDate = format.format({ value: processDate, type: format.Type.DATE }); log.debug('reduce start', 'setting processDate: ' + processDate); custrec.setValue({ fieldId: 'custrecord_createdate', value: processDate });