> -----Original Message----- > From: Jonathan Hicks [mailto:[EMAIL PROTECTED] > Sent: Wednesday, September 27, 2006 10:26 AM > To: Javascript > Subject: Re: add only weekdays to a date > > Hi Jim, > > (I just trying put up a post, but it doesnt look it went, so im resending > it...sorry if it goes up twice) > > I'm having trouble with the add() function. I got the diff() function to > work correctly, but it seems like there might be a bug with the add() > function (unless i'm doing something wrong, which could be the case haha). > i'm trying to add 5 days to today's date (9/27/06). Only business days > should make the new date be Wednesday, Oct 4. But instead it says monday,
Well... that's not suprising - that function was horribly broken. ;^) Well. Maybe not "horribly" - but lordy, it weren't good. I've fixed it and uploaded the new version. Let me know if I've fouled up again. Jim Davis ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/Javascript/message.cfm/messageid:3236 Subscription: http://www.houseoffusion.com/groups/Javascript/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.33
