I would do this: ```var effDate = moment(); var ex...
# suitescript
t
I would do this:
Copy code
var effDate = moment();
var expDate = moment().add(1,'years');
Then you just do
effDate.format('MM/DD/YYYY')
to get the date as a string. Anyone not using moment.js for date functions is working much harder than they need... No excuse not toi use it.