Hi,
My knowlege of javascript is fairly limited and the following has got me stumped;

I am using AspGrid, which has a datepicker. Once submitted the form calls a javacript function called validate, where I want it to obtain the date from the form calender and add 5 days to it and alert the new date in a popup message window. My code is as follows;

<SCRIPT LANGUAGE="JavaScript">
function Validate()
{
var myDate = new Date(Date.parse(document.AspGridFormSave1.FIELD4.value));
myDate.SetDate(myDate.getDate()+5);
alert(myDate)
return true;
}
</SCRIPT>

For some reason the above code does not work on gives the wrong date, which I think is down to date format (I am based in the UK - dd/mm/yyyy) and/or local versus UTC.

Any help would be much appreciated as I have spent a lot of time on this!