What do you get if you do...
#Month(Now())#<br />
#MonthAsString(Month(Now()))#
..?
-----Original Message-----
From: James Smith [mailto:[EMAIL PROTECTED]
Sent: 25 October 2004 16:38
To: CF-Talk
Subject: Odd date behaviour, September has 31 days?
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]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Sams Teach Yourself Regular Expressions in 10 Minutes by Ben Forta
http://www.houseoffusion.com/banners/view.cfm?bannerid=40
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:182511
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