oops.. ok..lol
I think I understand it.
And here you're saying, if the resulting month is January, print the
heading.
cfif month(offsetDate) eq 1
h1Fiction #year(offsetDate)#/h1
/cfif
#DateFormat(offsetDate, )#br
I think this will work for me. Thanks for all your help :)
Candace K.
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
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
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.
4 matches
Mail list logo