i would always test first when the var is date/str...
# suitescript
n
i would always test first when the var is date/string in netsuite...in my script record.setValue() has accepted the date object returned from
format.format()
, but in the same script,
searchObj.run().each(function(result){   ... record.submitFields(   ...values: completedate: SOMEDATE).......})
, the SOMEDATE accepts string value