[Javascript] Add 10 working days.

Andrew Dunn andrew at d2k.com.au
Tue Sep 24 20:13:04 CDT 2002


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.



More information about the Javascript mailing list