I've read a bunch of the related questions but just can't figure this one out.
This is what i have:
var days = "10"; // input is in string
var now = new Date();
var nowUtc = new Date(now.getUTCFullYear(), now.getUTCMonth(), now.getUTCDate(), now.getUTCHours(), now.getUTCMinutes(), now.getUTCSeconds());
var newDate = nowUtc.setDate(nowUtc.getDate() + parseInt(days));
The values just don't seem correct so i must be doing it wrong. Can anyone help?
I want the value in the end to be ISO 8601 format.
Thanks!