<cfset mH = TimeFormat(Now(), "H")> <!--- military time hour ---> <cfif mH gte 6 AND mH lt 10> include file a <cfelseif mH gte 10 AND mH lt 17> <!--- 10am - 5pm ---> include file b </cfif> ______________________________________________ Pete Freitag ([EMAIL PROTECTED]) CFDEV.COM / NETDesign Inc. ColdFusion Developer Resources http://www.cfdev.com/ -----Original Message----- From: mcklyn1 [mailto:[EMAIL PROTECTED]] Sent: Monday, September 25, 2000 2:26 PM To: CF-Talk Subject: Time I know that this has to be easy, but I must have stayed up too late last night, so my brain isn't functioning. I want to determine a file to be included based upon the time. For example, between 6:00 am and 10:00 am, include file A. Between 10:00 AM and 5:00 PM include file B. I just can not seem to get the time functions to work right to properly achieve this. John Lucas [EMAIL PROTECTED] ---------------------------------------------------------------------------- -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. ------------------------------------------------------------------------------ Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.