RE: anybody ever done: every n day of the month for a year ...

2003-03-03 Thread Ian Skinner
Don't know what you found in the UDF, probably better then what I got, but this is something I created a couple of years ago, that automatically calculates the 2nd Tuesday of the Month for our CFUG meetings. I'll have to look into the UDF at cflib. cfset Month = Month(Now()) cfswitch

Re: anybody ever done: every n day of the month for a year ...

2003-03-02 Thread Jesse Houwing
Owens, Howard wrote: Oops, found a problem with this UDF ... It give you the option of feeding in a 5 for the Nth recurrence, which 5, as I take it, should equal 'last' ... meaning, say, the Last Friday of the month. Some months that will be the 5th Friday, some months the 4th. So for

RE: anybody ever done: every n day of the month for a year ...

2003-03-02 Thread Jim Davis
-Original Message- From: Owens, Howard [mailto:[EMAIL PROTECTED] Sent: Friday, February 28, 2003 6:22 PM To: CF-Talk Subject: anybody ever done: every n day of the month for a year ... Just to save me spending too much time trying to figure this out ... Anybody already have

RE: anybody ever done: every n day of the month for a year ...

2003-03-01 Thread Cameron Childress
Always check CFLib first... http://www.cflib.org/udf.cfm?ID=179 -Cameron - Cameron Childress Sumo Consulting Inc. --- cell: 678-637-5072 aim: cameroncf email: [EMAIL PROTECTED] -Original Message- From: Owens, Howard [mailto:[EMAIL PROTECTED] Sent: Friday,

RE: anybody ever done: every n day of the month for a year ...

2003-03-01 Thread Owens, Howard
Doh! H. -Original Message- From: Cameron Childress [SMTP:[EMAIL PROTECTED] Sent: Saturday, March 01, 2003 11:28 AM To: CF-Talk Subject: RE: anybody ever done: every n day of the month for a year ... Always check CFLib first... http://www.cflib.org/udf.cfm?ID=179

anybody ever done: every n day of the month for a year ...

2003-03-01 Thread Adam Cantrell
At least you and I learned something. What was I thinking with the dateAdd+4weeks thing, I've built calendars before and should know better ;) surry bout that. Adam. ~| Archives:

RE: anybody ever done: every n day of the month for a year ...

2003-03-01 Thread Owens, Howard
That's why I come to the list and value the list ... great place to learn stuff. Just wish this time I had learned a little faster :-) H. -Original Message- From: Adam Cantrell [SMTP:[EMAIL PROTECTED] Sent: Saturday, March 01, 2003 5:20 PM To: CF-Talk Subject: anybody ever

RE: anybody ever done: every n day of the month for a year ...

2003-03-01 Thread Owens, Howard
Oops, found a problem with this UDF ... It give you the option of feeding in a 5 for the Nth recurrence, which 5, as I take it, should equal 'last' ... meaning, say, the Last Friday of the month. Some months that will be the 5th Friday, some months the 4th. So for November, for example, the UDF

RE: anybody ever done: every n day of the month for a year ...

2003-03-01 Thread Owens, Howard
Here, I changed this: //If the result is greater than days in month or less than 1, return -1 if(TheDayInMonth gt DaysInMonth(CreateDate(TheYear,TheMonth,1)) OR TheDayInMonth lt 1){ return -1; } else{ return TheDayInMonth; to this: //If the result is greater than days in month or

anybody ever done: every n day of the month for a year ...

2003-03-01 Thread Adam Cantrell
I know you're already well on your way with the UDF, but while watching a little TV tonight I figured I would toy around during the commercials just for sport. I was still able to fit the logic on one line within the loop - tee hee: !--- the day of week you want to use - using tuesday here---

anybody ever done: every n day of the month for a year ...

2003-03-01 Thread Adam Cantrell
went to paste this into another app and noticed that the first var should just be myDay, not myDayOfWeek. must have been messin with it last minute when I went to email it to you - it werks I swear ;) here it is again. !--- the day of week you want to use --- cfset myDay = 3 !--- the Nth

anybody ever done: every n day of the month for a year ...

2003-03-01 Thread Adam Cantrell
damm I didn't read this one yet - mine does the same crap! screw it, I'll toy with it tomorrow maybe -- pft ;P Adam. ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription:

anybody ever done: every n day of the month for a year ...

2003-02-28 Thread Owens, Howard
Just to save me spending too much time trying to figure this out ... Anybody already have a code snippet for calculating every N day of the Month, for a year ... Such as, Every 3rd Tuesday of the month? That's where I'm at on building my little recurrance engine. I'll spit the whole code back

Re: anybody ever done: every n day of the month for a year ...

2003-02-28 Thread webguy
Howard, why reinvent the wheel? the ical format specifies all this and more WG Quoting Owens, Howard [EMAIL PROTECTED]: Just to save me spending too much time trying to figure this out ... Anybody already have a code snippet for calculating every N day of the Month, for a year ... Such

RE: anybody ever done: every n day of the month for a year ...

2003-02-28 Thread Owens, Howard
Are you speaking of the RFC? What page? If not, what then and where? H. -Original Message- From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED] Sent: Friday, February 28, 2003 3:33 PM To: CF-Talk Subject: Re: anybody ever done: every n day of the month for a year ...

RE: anybody ever done: every n day of the month for a year ...

2003-02-28 Thread Cantrell, Adam
There may be more efficient means, but if you can supply the initial seed date - this would work: DateAdd(ww, 4, seedDate) You would want to put that in a while loop, (while the year remains the same as your seed date, add this date to my list). Adam. -Original Message- From:

RE: anybody ever done: every n day of the month for a year ...

2003-02-28 Thread Owens, Howard
Adam: I had trouble getting this to work with a while loop, so I used a for loop, and what I wind up with is the date of every 4 weeks apart ... if there's a five week month, things get thrown off ... cfscript variables.myDate = ArrayNew(1); variables.myDate[1] =

RE: anybody ever done: every n day of the month for a year ...

2003-02-28 Thread Owens, Howard
Well, for anybody interested ... this is what I have so far in trying to figure out a way of grabbing the N weekday of the month ... since the aforemented weekadd didn't work (it doesn't account for five week months), I thought the best way to proceed would be to try to figure out the first day of