I'm trying to do a calculation that is pre written in a variable (adding or taking away days from a given date) but I'm aware I'm going to need to some strip and replace to get this working and define the date formatting etc but am struggling along the way. In it's simplest form say If I have an actual string variable like this;
var newDate = 'Jul 10, 2018 + 1';
How can I output this as;
Jul 11, 2018
I've searched for a while but can't seem to work out how I can go about doing this, any help greatly appreciated. thanks