This content has been marked as final. Show 3 replies
Returns the day of the week (0 for Sunday, 1 for Monday, and so on) specified by this Date according to local time. Local time is determined by the operating system on which Flash Player is running.
Returns Number — A numeric version of the day of the week (0 - 6) a Date object represents.
Maybe my qs. was not clear. What I want to know is if I run the loop like this. I get Sunday twice. E.g if i select 1st Nov then for nowDate I have:
Thu Nov 1 00:00:00 GMT-0400 2007
Fri Nov 2 00:00:00 GMT-0400 2007
Sat Nov 3 00:00:00 GMT-0400 2007
Sun Nov 4 00:00:00 GMT-0400 2007
Sun Nov 4 23:00:00 GMT-0500 2007
Mon Nov 5 23:00:00 GMT-0500 2007
Tue Nov 6 23:00:00 GMT-0500 2007
Okay, I see. So wouldn't setDate() would be simpler in this case?
Sets the day of the month, according to local time, and returns the new time in milliseconds. Local time is determined by the operating system on which Flash Player is running
I know I'm not answering your question directly now as I'm little intimidated by the code :)