This is great - How would that hour(Now()) part change if I wanted to
measure it based on hour AND minute?

Mark
-----Original Message-----
From: Steve Oliver [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 31, 2002 10:23 PM
To: CF-Talk
Subject: RE: Conditional statement based on Server Time


Use hour(), it returns the time in 24 hour format, so if it's 10 PM it
will return 22

<cfif hour(now()) LTE 10>
        <cflocation url="thispage.cfm">
<cfelse>
        <cflocation url="thatpage.cfm">
</cfif>

______________________
steve oliver
atnet solutions, inc.
http://www.atnetsolutions.com


-----Original Message-----
From: Mark Leder [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 31, 2002 10:19 PM
To: CF-Talk
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


______________________________________________________________________
Why Share?
  Dedicated Win 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=coldfusionc
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