SiteExperts.com Logo Home | Community | Developer's Paradise
User Groups | Site Tools | Site Information | Search
 Main Menu
 Forums
SiteExperts.com Forums
All Discussions

SiteExperts Feedback
The Lounge
Dynamic HTML
Site Design/ Critiques
HTML and CSS
XML Technologies
The Wireless Internet
Internet Explorer
Microsoft .NET
The Server
Technical Support

Sponsored Links

User Groups : Forums : SiteExperts : The Server :

Previous DiscussionNext Discussion
 number of weeks in a month

does anybody know the algorithm for calculating the actual number of weeks in a month. It's always between 4 and 6. But my maths centre of my brain has seized up entirely.

E.g. April 2012 has 6 weeks, as does November 2009. 31 January 2007 has 5 weeks. The first day is a sunday and the last day is a monday.

 

Started By frumbert on Jan 30, 2007 at 5:34:17 PM

6 Response(s) | Reply

View All Replies
frumbert on Jan 31, 2007 at 2:04:58 PM

Aah I was assuming that Monday is the start of the week, which is the accepted day where I live, and shows as such in most of my calendering apps. When this is the case you can count the previous sunday as the previous week and you start getting lots of months with 5-6 weeks instead of 4-5. That seemed inconsistent


View All Replies

To respond to a discussion, you must first logon.

If you are not registered, please register yourself to become a member of the SiteExperts.community.

User Name
Password
Copyright 1997-2000 InsideDHTML.com, LLC. All rights reserved.