Gossamer Forum
Home : General : Perl Programming :

Weeks per month..

Quote Reply
Weeks per month..
I've just struck a problem. I'm trying to show a catalog of 4 columns for each month, then I'm changing the color of each cell to a different color, to show available/unavailable. The problem I have just been alerted to, is that each year the number of months changes for each month Unsure

Anyone know of a good work around for this?

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Weeks per month.. In reply to
The number of months changes for each month?.....you mean weeks I guess.

AFAIK there are 4 weeks every month Wink
Quote Reply
Re: [Paul] Weeks per month.. In reply to
In Reply To:
AFAIK there are 4 weeks every month Wink

Perhaps you want to look at a calander for this month then. I see 5. Wink Wink
Quote Reply
Re: [Mark Badolato] Weeks per month.. In reply to
4 full weeks :) ...I don't know of any month with 35 days Smile

Last edited by:

Paul: Oct 2, 2002, 8:11 AM
Quote Reply
Re: [Paul] Weeks per month.. In reply to
MMm..I'm starting to wonder how I'm going to get around this. Simply entering 4 weeks for each month isn't going to work, as that only comes up to 48 weeks, out of 52/year.

mmmm Crazy May have to rethink my strategy here...

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Weeks per month.. In reply to
I'm confused. The number of weeks each month doesn't change on a yearly basis does it?

30 days - September, April, June and November
All the rest have 31 (except Feb - 28).

The only time I can see it changing slightly is in a leap year.

Maybe I just have no idea how dates work :)

Last edited by:

Paul: Oct 2, 2002, 8:28 AM
Quote Reply
Re: [Paul] Weeks per month.. In reply to
Basically, im writing a program that will display the vacancy of someone in a specific week. At the moment I have somethingk like;

Jan- week 1,2,3,4
Feb, week 1,2,3,4
etc

But, as I said earlier, this doesn't really work, as between the months it makes up another 4 weeks :-/ I think what I may have to do is go by date....i.e 1st to 7th, 8th to 15th etc.

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Paul] Weeks per month.. In reply to
um... how many months only have 28 days?

Philip
------------------
Limecat is not pleased.
Post deleted by SeanP In reply to
Quote Reply
Re: [fuzzy thoughts] Weeks per month.. In reply to
You tell me.