Here are some pages for finding the day of the week  (ooops, Gregorian not Julian 
calendar)

Nice walkthrough:  http://www.koshko.com/calendar/day-of-week.shtml

11 page real writeup: http://home.t-online.de/home/berndt.schwerdtfeger/cal/cal.pdf

Simple writeup: http://mathforum.org/dr.math/faq/faq.calendar.html

Search for 'day of the week' on cflib.org and you will find a few, make sure you use 
the right calendar (julian/gregorian): 
http://www.cflib.org/udf.cfm?ID=155

http://www.cflib.org/udf.cfm?ID=234


Oh sure...after I spend 10 minutes looking....CF can do this already!!!

DayOfWeek(date) ,DayOfWeek
Description 
Returns the ordinal for the day of the week. The day is given as an integer in the 
range 1 (Sunday) to 7 (Saturday). 
When passing a date/time value as a string, enclose it in quotes. Otherwise, it is 
interpreted as a number representation of a date/time object. 


Note

You can pass the CreateDate function or Now function as the date parameter of 
DayOfWeek: #DayOfYear(CreateDate(2001, 3, 3))#
 
 ,<cfset yourDate = CreateDate(FORM.year, FORM.month, FORM.day)>





 
=========================================================
Kansas City ColdFusion User Group's website & listserv is 
hosted through the generous support of Clickdoug.com
To send email to the list, email  [EMAIL PROTECTED]
To (un)subscribe, email [EMAIL PROTECTED] with your request.
For hosting solutions http://www.clickdoug.com
Featuring Win2003 Enterprise, RedHat Linux, CFMX 6.1. 
======================================================

Reply via email to