var monthNames = new Array("01","02","03","04","05","06","07","08","09","10","11","12"); var dayNames = new Array("Chủ nhật","Thứ Hai","Thứ Ba","Thứ tư","Thứ Năm","Thứ Sáu","Thứ Bảy") var now = new Date(); thisYear = new Date(); thisYear = now.getYear(); thisDay = dayNames[now.getDay()]; if(thisYear < 1900) {thisYear+= 1900}; // corrections if Y2K display problem document.write("Hôm nay: "+thisDay +" "+"ngày"+" "+ now.getDate() + " tháng " + monthNames[now.getMonth()] + " năm " + thisYear); // -->