SuiteScript 2.0 dates are such a pain :face_palm: ...
# suitescript
j
SuiteScript 2.0 dates are such a pain 🤦 . The
search.lookupFields
value probably returns a string, the
Payment.setValue
probably wants a Date object. I don't ever use N/format so it's unclear to me if format.parse will actually give you a Date output given a string input. However, I did see that it's supposed to be
format.**Type**
instead of
format.**type**