Javascript definitely isn\'t my strongest point. I\'ve been attempting this for a couple of hours now and seem to be getting stuck with date formatting somewhere.
I
Everything's there !
date1.toLocaleDateString()
Thiswill return you date1 as a String in the client convention
To create a new date date2 with 2 weeks more (2weeks = 2*7*24*60*60 seconds):
var date2 = new Date(date1 + 60*60*24*7*2);