i'm building a pop-up calendar to allow users to select a date, this will automatically fill a form field with the date selected,
I'm new to javascript and have been given the function
function setFormDate(ddmmyy){
opener.document.Search.date.value = ddmmyy;
opener.focus();
close();
}
I seem to be getting problems with the date formatting from this - is there anyway i can change the code to return the date in a dd mmm yyyy format, i've tried changing the values but it always returns with a javascript error.
thanks for any help you can give
I'm new to javascript and have been given the function
function setFormDate(ddmmyy){
opener.document.Search.date.value = ddmmyy;
opener.focus();
close();
}
I seem to be getting problems with the date formatting from this - is there anyway i can change the code to return the date in a dd mmm yyyy format, i've tried changing the values but it always returns with a javascript error.
thanks for any help you can give