Need a little help

I am trying to put the current date onto my website. I have the code below - it works fine but it does not display the year. Could someone help me add whatever needs to be added to display the year as well?

Thanks very much!

window.onload = initDate;

function initDate() {
	var dayName = new Array("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday");
	var monName = new Array("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December");
	var now = new Date();
	var dtString = dayName[now.getDay()] + ", " + monName[now.getMonth()] + " " + now.getDate();

	document.getElementById("dtField").innerHTML = dtString;

just add + now.getFullYear() whereever you want the year to be in the assignment to dtString.

Thanks very much, it seems to work now as I would like it to! Awesome! :slight_smile: