function onLoad() { //Type appropriate comment here, and begin script below var d = new Date(), month = d.getMonth() + 1, day = '' + d.getDate(), year = d.getFullYear(); var newDate=year+'/'+month+'/'+day; // alert(year+'/'+month+'/'+day); g_form.setValue('startdate',newDate); g_form.setValue('applydate',newDate); }