[Javascript] Q on date operations

Walter Torres walter at torres.ws
Wed Jul 24 01:29:35 CDT 2002


I have 2 last items to mark off before the formatDate method is ready.

Any one know how to calculate...

    The second Wednesday of the July
     - I can get the day of the week as a name
       - both long and short string version
     - I can get the month as a name
       - both long and short string version

    I just can't get how many wednesdays this date is?


Also, closely related

    The second week in July

    This may, or may not be the same as above!

Take this month as an example.

The Second Sunday of the month is in the 3rd week of the month.

OnceI get these, I will post the entire 'formatDate' method for your
enjoyment.

Walter




More information about the Javascript mailing list