It's amazing how you can spend an hour scratching your head and staring at
the documentation and still miss the obvious, I knew it would be something I
was doing.  Thanks guys.

--
Jay

> -----Original Message-----
> From: Charlie Griefer [mailto:[EMAIL PROTECTED] 
> Sent: 25 October 2004 16:59
> To: CF-Talk
> Subject: Re: Odd date behaviour, September has 31 days?
> 
> daysInMonth() takes a -full- date variable value...not just an integer
> (month) value.  Feb will have different days in it depending 
> on the year.
> 
> try #daysinmonth(dateadd("m",-1,now()))#
> 
> 
> On Mon, 25 Oct 2004 16:38:13 +0100, James Smith 
> <[EMAIL PROTECTED]> wrote:
> > OK, I am sure I am doing something stupid here, but if I 
> simply output 
> > the following to the browser, it displays 31...
> > 
> > #daysinmonth(month(dateadd("m",-1,now())))#
> > 
> > Last time I checked September only had 30 days.  If I output....
> > 
> > #month(dateadd("m",-1,now()))#
> > 
> > It displays 9, so I know it is using the correct month.  Someone 
> > please help me before I pull my hair out and go completely insane.
> > 
> > --
> > James Smith
> > [EMAIL PROTECTED]
> > 
> > 
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Purchase from House of Fusion, a Macromedia Authorized Affiliate and support the CF 
community.
http://www.houseoffusion.com/banners/view.cfm?bannerid=34

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:182578
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to