RE: Dates... again

2002-09-24 Thread Tony Weeg
hmmm. could you set an application/client variable, and set it to last until the time from now, until dec 21 midnight, then reset it every X hours or X minutes(once a year), or whatever, to gather the current year, and then on the year switch, trigger the other changes in the tables?

RE: Dates... again

2002-09-24 Thread Matthew Walker
How about something like this cfloop index=offset from=1 to=11 cfoutput cfset offsetDate = DateAdd(m, offset, Now()) cfif month(offsetDate) eq 1 h1Fiction #year(offsetDate)#/h1 /cfif

RE: Dates... again - Tony

2002-09-24 Thread Candace Cottrell
I think I got you... something like... cfset changeTable = 11/30/#year1# Candace K. Cottrell, Web Developer The Children's Medical Center One Children's Plaza Dayton, OH 45404 937-641-4293 http://www.childrensdayton.org [EMAIL PROTECTED] [EMAIL PROTECTED] 09/24/02 19:29 PM

RE: Dates... again

2002-09-24 Thread Candace Cottrell
I just want to be sure I am understanding this. What does offset do? I looked it up in the handy dandy WACK but didnt see anything. Candace K. Cottrell, Web Developer The Children's Medical Center One Children's Plaza Dayton, OH 45404 937-641-4293 http://www.childrensdayton.org [EMAIL

RE: Dates... again

2002-09-24 Thread Matthew Walker
Subject: RE: Dates... again I just want to be sure I am understanding this. What does offset do? I looked it up in the handy dandy WACK but didnt see anything. Candace K. Cottrell, Web Developer The Children's Medical Center One Children's Plaza Dayton, OH 45404 937-641-4293

RE: Dates... again - Matthew

2002-09-24 Thread Candace Cottrell
for next month, 2 for the month after that Make sense? -Original Message- From: Candace Cottrell [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 25 September 2002 11:38 a.m. To: CF-Talk Subject: RE: Dates... again I just want to be sure I am understanding this. What does offset do

RE: Dates... again - Matthew

2002-09-24 Thread Matthew Walker
And here you're saying, if the resulting month is January, print the heading. Exactly! Let us know if you have any problems. __ This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable

RE: Dates... again - Matthew

2002-09-24 Thread Candace Cottrell
Ok, this works for now. I added some looping and here's waht I came up with: cfoutput cfloop index = offset from=0 to=12 cfset offsetDate = DateAdd(m, offset, Now()) cfif offsetDate eq Now() td width=43% class=nbheader Fiction #year(offsetDate)#/td/tr /cfif

RE: Dates... again - Matthew

2002-09-24 Thread Matthew Walker
cfset offsetDate = DateAdd(m, offset, Now()) cfif offsetDate eq Now() This bit might be a bit dodgy as you're assuming no time has passed between now() and now(). It could occasionally fail. It might be better to simple test if offset eq 0.