Is this a bug? When I run this code it does not give me the correct first day
of the month. 2006 is fine.
CFSET date = 8/1/2005
CFOUTPUT#DayOfWeekAsString(DayOfWeek(FirstDayOfMonth(date)))#/CFOUTPUT
~|
Logware (www.logware.us):
dayOfWeek takes a date, not a day. You want this:
dayOfWeekAsString(dayOfWeek(createDate(year(date), month(date), 1)))
firstDayOfMonth returns the day offset from the year for that date,
not the date itself.
cheers,
barneyb
On 9/14/05, Doug Bedient [EMAIL PROTECTED] wrote:
Is this a bug?
2 matches
Mail list logo