yeah usually I do something like new moment(new Da...
# suitescript
c
yeah usually I do something like new moment(new Date(<format>) then do manipulation and then do a .toDate() at the end to get an actual date object and not a moment object and then set that date object in your field.