<cfif week(now()) MOD 2 is 0>
WEEK IS EVEN
<cfelse>
WEEK IS ODD
</cfif>
----- Original Message -----
From: Matthew Fusfield
To: CF-Talk
Sent: Thursday, August 26, 2004 4:54 PM
Subject: Re: Simple Date Function Question...at least I think it is.
Not a big deal, but that should actually be:
<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]
- Simple Date Function Question...at least I think it is. Che Vilnonis
- Re: Simple Date Function Question...at least I think... Matthew Fusfield
- RE: Simple Date Function Question...at least I think... Greg Luce