Whoa, nice.  I was heading down a whole bunch of

<cfif datepart( "yyyy" , now() ) lt 2004 and datepart( "d" , now() ) gte 6

etc, etc.

So cf naturally parses plain language dates like that?  wow

Thanks, Raymond, works a treat.

Matt


-----Original Message-----
From: Raymond Camden [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, February 06, 2003 4:38 PM
To: CF-Talk
Subject: RE: date diff help

Why not keep it simple?

<cfif now() gte "February 7, 2003">
        hello
<cfelse>
        not
</cfif> 


=======================================================================
Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc

Email    : [EMAIL PROTECTED]
WWW      : www.camdenfamily.com/morpheus
Yahoo IM : morpheus

"My ally is the Force, and a powerful ally it is." - Yoda 

> -----Original Message-----
> From: Smith, Matthew P -CONT(DYN) 
> [mailto:[EMAIL PROTECTED]] 
> Sent: Thursday, February 06, 2003 4:28 PM
> To: CF-Talk
> Subject: date diff help
> 
> 
> I need a conditional that will reveal a link starting at 
> midnight tonight. My brain seems a bit fired right now, and I 
> can't get this working.
>  
> Doing this:
> #datediff( "d" , "{ts '2003-02-07 00:00:01'}" , now() )#
>  
> gives me a 0
>  
> but so does this:
> #datediff( "d" , "{ts '2003-02-06 00:00:00'}" , now() )#
>  
> (with a 6 instead of a 7 for the day)
>  
> I've also tried "y".
>  
> Can anyone provide the syntax to do what I need.
>  
> It'll just be in a simple cfif.
>  
> Last thing for today, then I can go home, and I rather not 
> come in tonight.
>  
> Thanks, all.
> Matthew P. Smith 
> Web Developer, Object Oriented 
> Naval Education & Training Professional 
> Development & Technology Center 
> (NETPDTC) 
> (850)452-1001 ext. 1245 
> [EMAIL PROTECTED] 
>  
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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