Development JavaScript DHTML

/* Sunday=0, Monday=1 ... */



    var d=new Date()
    var weekday=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday",
                "Friday","Saturday")
    document.write("Today is " + weekday[d.getDay()])