I have a search box which in my case displays the current date (day) + 5 days in advance.
The problem is I need to get it to also display the month and year. My database developers have thrown a spanner in the works by including the Year and month together in one field ie September 2006,
value= 200609.
The name of the parameter I have to send in the string is ArrivalMonthYear I include the script i use at present.
At the moment, every month I am going through all my pages and deleting the expired month. Hope somebody can help
script
<!---
function initDate()
{
var now = new Date();
var dd = now.getDate();
if (dd < 10)
{
dd == 0 + dd;
}
if ((dd>=29 ) || ((dd>=27 )))
{
document.GTSL.ArrivalDay.s
electedInd
ex = dd-dd;
}
else
{
document.GTSL.ArrivalDay.s
electedInd
ex=dd+5;
}
}
//--->
Start Free Trial