This content has been marked as final. Show 3 replies
Yes it is doable. Check the help filed for the Date class. There you will find the getDay() method. This returns an integer representing the day of the week a given date will fall upon. It starts 0 for Sunday, 1 for Monday, and so on.
So to figure out which day August 1, 2006 was you would do this:
myDate=new Date(2006,7,1)//Remember months start at 0 for Jan
trace(startDay)//Should be 2 for Tuesday
Also a nice trick is this:
That gives you the zeroth day for August which is really the last day of July. I'm sure you will find a million uses for that.
The code below will find the first day and last day of the month. It has trace statements that will output a message on where to create code for these tables and entry fields that you plan to have. I don’t know if you need to create these tables/entries for the whole year or not, if so then you need to change the month parameter for the Date object constructor.
Oh thanks alot guys!!
I'm sorry for such a late reply, I was away for a fewdays without a computer.
But thanks alot, I really appreciate it!!!