What si the recommended way to fill `Date` fields ...
# suitescript
f
What si the recommended way to fill
Date
fields from within a script? Can I just pass in a JS Date object or do I need to use
N/format
's format method?
b
use setValue with a Date
use setText with a N/format module formatted string
i would recommend in that order
f
hmm but what about
record.submitFields
?
b
dont remember actually
i would still say try it with a Date first
if it fails, use the text