[thelist] JavaScript: Weekdays

miinx miinx at miinx.com.au
Mon Sep 11 07:52:57 CDT 2000


Niklaus Haldimann wrote:

> I need a JavaScript which can tell me the weekday of any given date.

Try something like this:

function getDay(someDate) {
    var oDate, theDay;
    oDate = new Date(someDate);
    return theDay = oDate.getDay();
}

HTH
Karen

--
http://www.miinx.com.au/
http://www.monkey.com.au/






More information about the thelist mailing list