The example uses dateAdd, which subtracts a month, not a month number. so dateAdd("m", -1, '2005/1/1') yields 2004/12/1. If you did this: createDate(year(now()), month(now()) - 1, day(now())), then you'd have the problem you propose.
cheers, barneyb On 9/21/05, Tim Claremont <[EMAIL PROTECTED]> wrote: > Also, what happens when I try to run this method in January, and it attempts > to subract "1" from the month number? > > > -- Barney Boisvert [EMAIL PROTECTED] 360.319.6145 http://www.barneyb.com/ Got Gmail? I have 100 invites. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:218840 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