I am using the following java script to insert the date into a form field. I need to know how to add to this script to include the time along with the date.
var newdate = new Date();
var thisfieldis = this.getField("date"
var theday = util.printd("dddd",newdate);
var thedate = util.printd("d",newdate);
var themonth = util.printd("mmmm",newdate); var theyear = util.printd("yyyy",newdate);
thisfieldis.value = theday + " " + thedate + ", " + themonth + " " + theyear;
var newdate = new Date();
var thisfieldis = this.getField("date"
var theday = util.printd("dddd",newdate);
var thedate = util.printd("d",newdate);
var themonth = util.printd("mmmm",newdate); var theyear = util.printd("yyyy",newdate);
thisfieldis.value = theday + " " + thedate + ", " + themonth + " " + theyear;