This help? It will give you the second Tuesday of the current month.

<cfscript>
for(i = 7; i LTE 14; i = incrementValue(i))
{
        firstTuesday = createDate(dateFormat(now(), "YYYY"),
dateFormat(now(), "MM"), i);
        if(dateFormat(firstTuesday, "DDDD") IS "Tuesday"){break;}
}
</cfscript>

Adam Wayne Lehman
Web Systems Developer
Johns Hopkins Bloomberg School of Public Health
Distance Education Division


-----Original Message-----
From: Les Mizzell [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, February 04, 2003 2:32 PM
To: CF-Talk
Subject: The 2nd Tuesday of every month...

I've got a site where a club meeting date is posted. It's always the 2nd
tuesday or every month.  Currently, I'm using a database holding all the
tuesdays, and doing a comparison to todays date to look up the date of
the
proper Tuesday to  display.

Gotta be an easier way without the database....

Suggestions?


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.

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

Reply via email to