Here ya go. Written very quickly so beware of typos. I'll get this up on
cflib one day...
<cfscript>
function astrologicalSign(monthOfBirth,dayOfBirth) {
var y = year(now());
var sBDay = "#monthOfBirth#/#dayofBirth#/#y#";
if("3/21/#y#" lte sBDay and sBDay lte "4/19/#y#") return
"Aries";
if("4/20/#y#" lte sBDay and sBDay lte "5/20/#y#") return
"Taurus";
if("5/21/#y#" lte sBDay and sBDay lte "6/21/#y#") return
"Gemini";
if("6/22/#y#" lte sBDay and sBDay lte "7/22/#y#") return
"Cancer";
if("7/23/#y#" lte sBDay and sBDay lte "8/22/#y#") return "Leo";
if("8/23/#y#" lte sBDay and sBDay lte "9/22/#y#") return
"Virgo";
if("9/23/#y#" lte sBDay and sBDay lte "10/22/#y#") return
"Libra";
if("10/23/#y#" lte sBDay and sBDay lte "11/21/#y#") return
"Scorpio";
if("11/22/#y#" lte sBDay and sBDay lte "12/21/#y#") return
"Sagittarius";
if("12/22/#y#" lte sBDay and sBDay lte "12/31/#y#") return
"Capricorn";
if("1/1/#y#" lte sBDay and sBDay lte "1/19/#y#") return
"Capricorn";
if("1/20/#y#" lte sBDay and sBDay lte "2/18/#y#") return
"Aquarius";
if("2/19/#y#" lte sBDay and sBDay lte "3/20/#y#") return
"Pisces";
}
</cfscript>
<p style="font-family: Arial; font-size: 12px;">
<cfset dayOne = createDate(year(now()),1,1)>
<cfloop index="x" from=1 to=52>
<cfoutput>The astroligical sign for #dateFormat(dayOne)# is
#astrologicalSign(month(dayOne),day(dayOne))#<br></cfoutput>
<cfset dayOne = dateAdd("ww",1,dayOne)>
</cfloop>
</p>
=======================================================================
Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc
Member of Team Macromedia
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: Benjamin Rosenthal [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 19, 2003 9:47 PM
> To: CF-Talk
> Subject: astrological sign
>
>
> Took a look at CFLIB but didn't see anything there.
>
> I'm not what you would call a "believer" so I mistakenly
> assumed it HAD to be more complicated than date alone. Go
> figure -- who knew figuring out one's personality could be so
> simple? ;)
>
> Here are the date ranges if someone wants to go to town.
> Yes, I'd be happy if anyone wants to post their UDF. (Michael
> T., tried to contact you but could't see your email anywhere.)
>
> Aries March 21-April 19
> Taurus April 20-May 20
> Gemini May 21-June 21
> Cancer June 22-July 22
> Leo July 23-August 22
> Virgo August 23-September 22
> Libra September 23-October 22
> Scorpio October 23 - November 21
> Sagittarius November 22-December 21
> Capricorn December 22-January 19
> Aquarius January 20-February 18
> Pisces February 19-March 20
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4