Hi,
Will appreciate bareing with me as I'm not very dextrouse on some areas of javascripting.
I have a page with a form, and I'm wanting to:
1. Capture the current date (today)
2. Add 15 days to the date value generated
3. Send it as a value in the form
Have tried all sorts of manners, but what has only worked to this moment is:
<body onload="document.forms[0].elements['DATE'].value = new Date()">
and then on the form...
<form action="http://"
name="subscribeForm" method="post" onSubmit="return checkForm();">
<input type="hidden" name="DATE" />
...
I'm getting all the date information though (Wed Sep 08 2010 18:25:26 GMT-0600), and then would actually wish to not only set it up so that it only shows: Sep 08 2010; but also add 15 days to this value before sending it with form.
Any help will be greatly appreciated.
Best!
Max