Whats the gotcha with setting dates again?
# suitescript
s
Whats the gotcha with setting dates again?
w
I think for .setValue() it expects a Date object, the error message is misleading because it's meant for the UI.
s
yup, I just got:
Copy code
next_invoice.setValue({
                                "fieldId": 'trandate',
                                "value": new Date()
                            });
working