Try this (120000 is 12 noon, 24 hr. time): <CFIF timeformat(Now(), "HHmmss") LT 120000> <CFINCLUDE template="morningfile.cfm"> <CFELSE> <CFINCLUDE template="afternoonfile.cfm"> </cfif> ~Simon -----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.