|
CalendarXP.net Support Most forums here are private and invisible to public.
|
View previous topic :: View next topic |
Author |
Message |
N2_Bnks9
Joined: 29 Oct 2009 Posts: 6
|
Posted: Fri Feb 05, 2010 10:40 pm Post subject: Recurring Quarterly Event |
|
|
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 |
|
|
calendarxp Site Admin
Joined: 30 Jan 2005 Posts: 409
|
Posted: Sat Feb 06, 2010 1:09 am Post subject: |
|
|
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 |
|
|
N2_Bnks9
Joined: 29 Oct 2009 Posts: 6
|
Posted: Sat Feb 06, 2010 1:25 am Post subject: |
|
|
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 |
|
|
N2_Bnks9
Joined: 29 Oct 2009 Posts: 6
|
Posted: Sat Feb 06, 2010 4:15 am Post subject: |
|
|
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 |
|
|
|
|
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
|