I posted a similar question last night, unfortunately I included the wrong code to get the help I need. Let me try again.
I am trying to autofill a 'date' field in my web form so the user doesn't have to enter it.
Currently, I am using the code below in the form field, which works fine, except it doesn't provide the date in the correct format for my particular needs.
<input id="date" name="date"><script type="text/javascript">document.getElementById('date').value = Date();</script>
The code above produces a result like this:
Wed Mar 22 2017 00:59:21 GMT-0700 (Pacific Daylight Time)
I would rather the result was like this:
Wednesday March 22, 2017