<cfif week(now()) MOD 2>
WEEK IS ODD
<cfelse>
WEEK IS EVEN
</cfif>
(if the remainder is 0, it is an even number. If it has a remainder,
than it is odd)
Matt
On Thu, 26 Aug 2004 16:52:55 -0400, Matthew Fusfield <[EMAIL PROTECTED]> wrote:
> Try something like this:
>
> <cfif week(now()) MOD 2>
> WEEK IS EVEN
> <cfelse>
> WEEK IS ODD
> </cfif>
>
> Matt
>
>
>
>
> On Thu, 26 Aug 2004 16:48:44 -0400, Che Vilnonis <[EMAIL PROTECTED]> wrote:
> > What would be the easiest way to write code to determine whether the current
> > week of the year is even or odd?
> > I am looking to display two different groups of images, each group being
> > displayed every other week.
> >
> > Thanks, Che
> >
> >
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

