I have a Date object:
var today = new Date();
I want to add 7 days to it. Can this be done in javascript?
I've tried the following which don't work:
var nextDate = today + 7;
var nextDate = today + new Date(1970, 0, 7)
Thanks
var today = new Date();
I want to add 7 days to it. Can this be done in javascript?
I've tried the following which don't work:
var nextDate = today + 7;
var nextDate = today + new Date(1970, 0, 7)
Thanks
Comment