Well your date variables look sort of right, but you aren't actually applying it to the input field:
Code:
<input type="text" value="newcdat3" tabindex="9" size="20" id="date">
<script type="text/javascript">
$ = function(e) {return document.getElementById(e);};
var x = new Date(),
m = x.getMonth(),
d = x.getDate(),
y = x.getYear();
$("date").value = (m<10?"0"+m:m)+"-"+(d<10?"0"+d:d)+"-"+y;
</script>
I couldn't figure out the date format you were trying to use, so I used the basic month-day-year format.
Bookmarks