Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

creating a recurring appointment calendar?

Status
Not open for further replies.

lminmei

Programmer
Feb 1, 2000
111
0
0
US
does anyone know how i can create a recurring appointment module for a coldfusion calendar? i already have a working calendar but i am having trouble figuring out how to create a recurring appointment (occurs every wednesday on the second of every month)...
thanks in advance!!!
-Derek
 
Well, if you want it do display something on every Wednesday, you could try:

<cfset Today = Now()>
<cfif DayOfWeek(Today) EQ 4>
Display event
</cfif>

The function DayOfWeek returns the ordinal for the day of the week. The day is given as an integer in the range 1 (Sunday) to 7 (Saturday).

I'm not entirely sure what you mean by &quot;on the second of every month&quot;. Are you looking for the second Wednesday of the month, or every Wendsday AND the second day of the month?



Hope This Helps!

Ecobb
- I hate computers!
 
yes i meant the second wednesday of every month...
not every wednesday
can you help me with this problem?

 
try this:

<cfif DayOfWeek(now()) eq 4
and Day(NOW()) gt 7
and Day(NOW()) lte 14>

your code.....

</cfif>

chau
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top