Mark,

The Now() function returns the server time.  Do this:
<CFOUTPUT>#Now()#</CFOUTPUT> to see the complete time/date stamp from the
server.


Try this:

<CFIF TimeFormat(Now(), "HH:mm") LTE "10:00">

Read up on TimeFormat in the Docs.

Dave



----- Original Message -----
From: "Mark Leder" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Thursday, January 31, 2002 10:19 PM
Subject: Conditional statement based on Server Time


> How would I write a CFIF statement that redirects based on the time of a
> server.
>
> For example:  <cfif servertime LTE 10:00 AM>
<cflocation="thistemplate.cfm">
>               <cfelse>
>                  <cflocation="thattemplate.cfm">
>               </cfif>
>
> Thanks in advance for your help.
>
> Mark
> 
______________________________________________________________________
Dedicated Windows 2000 Server
  PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation · $99/Month · Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusiona
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to