cool. np.
btw, using this code below
2007 gives wrong info. need to fix that I think.
people may use and think its right, when really its wrong...just another
fyi on a fgw!!!
later
---------clip---------------
<cfscript>
/**
* Returns the day of the month(1-31) of an Nth Occurrence of a day
(1-sunday,2-monday etc.)in a given month.
*
* @param NthOccurrence A number representing the nth
occurrence.1-5.
* @param TheDayOfWeek A number representing the day of the week
(1=Sunday, 2=Monday, etc.).
* @param TheMonth A number representing the Month (1=January,
2=February, etc.).
* @param TheYear The year.
* @return Returns a numeric value.
* @author Ken McCafferty ([EMAIL PROTECTED])
* @version 1, August 28, 2001
*/
function
GetNthOccOfDayInMonth(NthOccurrence,TheDayOfWeek,TheMonth,TheYear)
{
Var TheDayInMonth=0;
if(TheDayOfWeek lt DayOfWeek(CreateDate(TheYear,TheMonth,1))){
TheDayInMonth= 1 + NthOccurrence*7 + (TheDayOfWeek -
DayOfWeek(CreateDate(TheYear,TheMonth,1))) MOD 7;
}
else{
TheDayInMonth= 1 + (NthOccurrence-1)*7 + (TheDayOfWeek -
DayOfWeek(CreateDate(TheYear,TheMonth,1))) MOD 7;
}
//If the result is greater than days in month or less than 1, return
-1
if(TheDayInMonth gt DaysInMonth(CreateDate(TheYear,TheMonth,1)) OR
TheDayInMonth lt 1){
return -1;
}
else{
return TheDayInMonth;
}
}
</cfscript>
<cfscript>
//DaylightSavingTimeStart:first sunday in April
function GetDaylightSavingTimeStart() {
Var TheYear=Year(2007);
if(ArrayLen(Arguments))
TheYear = Arguments[1];
return
CreateDate(TheYear,4,GetNthOccOfDayInMonth(1,1,4,TheYear));
}
</cfscript>
<CFOUTPUT>
This year, Daylight Saving Time ends on
#DateFormat(GetDaylightSavingTimeStart(), 'dddd, mmm dd, yyyy')#.
</CFOUTPUT>
---------end clip---------
are you still reading this??? if so, get clipping, and try running the
code urself...i cannot be losing it...the voices told me I wasn't!!!!!
tony weeg
sr. web applications architect
navtrak, inc.
[EMAIL PROTECTED]
www.navtrak.net
office 410.548.2337
fax 410.860.2337
-----Original Message-----
From: Raymond Camden [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 10, 2003 11:54 AM
To: CF-Talk
Subject: RE: cflib.org and dependent functions
Tony, thanks for catching that. I'll see if I can get a fix for that
some day. As it stands, I'm hoping to switch to a nice Flash browser
instead.
========================================================================
===
Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc
(www.mindseye.com)
Member of Team Macromedia (http://www.macromedia.com/go/teammacromedia)
Email : [EMAIL PROTECTED]
Blog : www.camdenfamily.com/morpheus/blog
Yahoo IM : morpheus
"My ally is the Force, and a powerful ally it is." - Yoda
> -----Original Message-----
> From: Tony Weeg [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, September 10, 2003 9:48 AM
> To: CF-Talk
> Subject: RE: cflib.org and dependent functions
>
>
> nevermind, from udf browser it doesn't tell you of the
> dependency, but I see from the cflib.org page, that it tells
> you :) thanks
>
> tony
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
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