This code works in Chrome, but not IE.
<code>
DateData = document.form2.D10.value;
var Date7l = new Date(DateData);
Date7l.setDate(Date7l.getDate() + 7);
</code>

Its takes a date like :1/1/2014 and steps back 7 days to show:
<date>
Wed Jan 08 2014 00:00:00 GMT-0500 (Eastern Standard Time)
</date>

Adding this line:
<code>
var s7 = Date7l.toLocaleString().substring(0, Date7l.toLocaleString().lastIndexOf("/") + 5);
</code>

This gives the correct format in chrome, but in IE shoes the first 4 digits of a weekday and no date.

What can I do to resolve this guys.