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

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

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

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.