Formula To Determine Num Days In Month / 1st Day Of Week Based On Year / Month?

Superwormy

Golden Member
Feb 7, 2001
1,637
0
0
Is there some kinda formula I can use to determine the number of days in a month ( cause Jan changes ) and what day of the week teh 1st lands on ( Mon, Tues, Wed, etc. ) for a given month and given year?

Thanks!
 

BooneRebel

Platinum Member
Mar 22, 2001
2,229
0
0
January doesn't change, February does.

The days of the week calendar rotates every seven years. So if you have an older 1996 calendar out there you can reuse it for 2003...
 

Superwormy

Golden Member
Feb 7, 2001
1,637
0
0
ROFL, <sarcasm>thanks for the helpful answers</sarcasm>!

Hehe, jk, those two responses were good for a laugh. Anyways, yes, February, thank you BooneRebel, and thanks for the corrections to my grammar Zugzwang152 :)

Now, does anyone actuallly have a REAL answer!?!

I need it for a PHP script, but any simple formula will do, just so I can figure it out on the fly later!