Can you please help me to get result? New Date = Date + Period
$event.subscribe("data.book", function(data) {
console.log(data[4].date); //showing result = Thu 15/02/2018
console.log(data[4].period); // showing result = 3
});
I have done research but not able to find solution because most of the solution showing how to add date but no idea how to gate Day like in this case I want result something like Sun 18/2/2018 where every time date and period value will be dynamic.
Looking for the solution with javascript as this all code is under .js file