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
______________________________________________________________________
Get Your Own 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=coldfusionb
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists