Mark,

TimeFormat(Now(), "HH:mm") give you hours and minutes in 24 hour format
TimeFormat(Now(), "hh:mm") gives you hours and minutes in 12 hour format
"hh:mm tt" gives you AM or PM
"hh:mm t" gives you A or P

It's spelled out very nicely in the help in CF and CFStudio.

Dave


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


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



______________________________________________________________________
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

Reply via email to