I need to add 10 working days to a date the user enters in to a text box. At the moment I'm using this function: function addDays(myDate,days) { return new Date(myDate.getTime() + days*24*60*60*1000); } This adds the number of days, but it doesn't exclude weekends. Anyone have any suggestions for this? Thanks.