CalendarXP.net Support Forum Index CalendarXP.net Support
Most forums here are private and invisible to public.
 
 FAQFAQ   SearchSearch   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Recurring Quarterly Event

 
Post new topic   Reply to topic    CalendarXP.net Support Forum Index -> FlatCalendarXP Related
View previous topic :: View next topic  
Author Message
N2_Bnks9



Joined: 29 Oct 2009
Posts: 6

PostPosted: Fri Feb 05, 2010 10:40 pm    Post subject: Recurring Quarterly Event Reply with quote

I'm currently using the following code to call out recurring meetings

fAddEvent(2010,2,13, "Quarterly Council Meeting -- 10:00am.", null, "#ccc99", "#333366");
fAddEvent(2010,5,8, "Quarterly Council Meeting -- 10:00am.", null, "#ccc99", "#333366");
fAddEvent(2010,8,14, "Quarterly Council Meeting -- 10:00am.", null, "#ccc99", "#333366");
fAddEvent(2010,11,13, "Quarterly Council Meeting -- 10:00am.", null, "#ccc99", "#333366");


Is there a more efficient way to do this -- call out these meetings that occur on the second Saturday of the second month of each quarter -- without having to manually figure the dates and list them individually?

Thanks
Back to top
View user's profile Send private message
calendarxp
Site Admin


Joined: 30 Jan 2005
Posts: 409

PostPosted: Sat Feb 06, 2010 1:09 am    Post subject: Reply with quote

Please refer to this answer.

More recurring event details can be found in tutorial

_________________
Copyright 2003-2011 Idemfactor Solutions, Inc. All rights reserved.
Back to top
View user's profile Send private message
N2_Bnks9



Joined: 29 Oct 2009
Posts: 6

PostPosted: Sat Feb 06, 2010 1:25 am    Post subject: Reply with quote

I had already looked at the tutorial and couldn't figure out a solution. And the "answer" does little to provide a solution for something other than an event at a number-of-days interval.

I don't see anyway to call out the second Saturday of the second month of each quarter. Is it possible or not?
Back to top
View user's profile Send private message
N2_Bnks9



Joined: 29 Oct 2009
Posts: 6

PostPosted: Sat Feb 06, 2010 4:15 am    Post subject: Reply with quote

I had hoped for something simpler than the holiday function x 4, but will settle for it since there appears to be no simpler solution.

else if (m==2&&d<15) {
var date=fGetDateByDOW(y,2,2,6);
if (d==date) r=[" Feb "+d+", "+y+" \n Quarterly Council Meeting -- 10 am ",gsAction,"#cccc99","#333366"];
}

else if (m==5&&d<15) {
var date=fGetDateByDOW(y,5,2,6);
if (d==date) r=[" May "+d+", "+y+" \n Quarterly Council Meeting -- 10 am ",gsAction,"#cccc99","#333366"];
}

else if (m==8&&d<15) {
var date=fGetDateByDOW(y,8,2,6);
if (d==date) r=[" Aug "+d+", "+y+" \n Quarterly Council Meeting -- 10 am ",gsAction,"#cccc99","#333366"];
}

else if (m==11&&d<15) {
var date=fGetDateByDOW(y,11,2,6);
if (d==date) r=[" Nov "+d+", "+y+" \n Quarterly Council Meeting -- 10 am ",gsAction,"#cccc99","#333366"];
}
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    CalendarXP.net Support Forum Index -> FlatCalendarXP Related All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum


Copyright 2003- Idemfactor Solutions, Inc. All rights reserved.
Powered by phpBB © 2001, 2005 phpBB Group