Hi, I have a funtion that adds a given amount of days (taken from the user) and adds that to a date to get a new date. I need to modify it so that only weekdays are included when you add the days. For example, if you have today's date (9/26/06) and you want to add 5 days, the answer should be 10/3/06 because the weekend should not be counted. Does anyone know how this can be done?
var numberOfDaysToAdd = 5 var mydate1 = new Date() mydate1.setFullYear(2006,9,26) mydate1.setDate(mydate1.getDate() + numberOfDaysToAdd) Any help would be appreciated, Thanks! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:3222 Subscription: http://www.houseoffusion.com/groups/Javascript/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.33
