var bob = new Date(...
var dayOfWeek = bob.getDay(); //what day is it here
var utcDayOfWeek = bob.getUTCDay(); //what day it is in merry old England
right now

returns 0 for Sunday , etc...



-----Original Message-----
From: Mark Galbreath [mailto:[EMAIL PROTECTED]]
Sent: Friday, 24 January 2003 23:16
To: struts
Subject: [OT] Programming Challenge


Anybody know the algorithm for randomly calculating the day of the week,
given a particular date?  E.g., July 4, 2006 = Wednesday.  I need to do this
in JavaScript and for some reason (too much wine last night?) I can't get
brain engaged.

Mark



--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to