Dave: 

You should be able to accomplish this very easily with cfform... 

(KIDDING...hey, i kid because i love) 

Seriously...looks like you were on the right track. 

<cfset deadline = createDateTime(2003, 3, 10, 18, 0, 0)> 

<cfif dateCompare(now(), deadline, 's') GT 0>
SORRY
</cfif> 

hth,
Charlie 

 

Dave Lyons writes: 

> sorry for another stupid post but I cant get this too wok.
> Been reading the live docs and its confused me even more! figures! 
> 
> I just got mad and deleted the code and starting fresh 
> 
> what I need to do is on a certain day of the week and at a certain time (say Friday, 
>march 10, 2003 at 6pm exactly) to abort any further actions with the page
> so someone cant make an entry into the db 1 sec after the deadline.
> should be simple but I cant get it to work right, did once but it was reversed, lol
> Been messing around with a lot of the date & time functions but I really couldn't 
>tell which 1 to use.
> Basically something like this
> <!--- set current time --->
> <cfset timeUP = Now()>
> <!--- check to see if time and day is before the deadline, if it is after the 
>deadline abort--->
> <cfif timeUP GT 03/10/2003 18:00:00>
> Sorry time is up 
> 
> <cfabort> 
> 
> <!--- if it is before the deadline continue with the insert form --->
> <cfelse> 
> 
> ..rest of page 
> 
> </cfif> 
> 
> any suggestions.. (besides read the ben forta book, lol) 
> 
> dave
> <!--- doesn't know jack about cfm ---> 
> 
> 
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to