Making it happen
The formula
Get the week day for 1st of any month:
int firstday = (1 + 2*m + (3*(m+1)/5) + y + (y/4) – (y/100) + (y/400) + 2) % 7 – 1
Simple, right? Don’t remember where is it from.
| Print article | This entry was posted by andrei on May 4, 2006 at 8:53 pm, and is filed under Uncategorized. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |
