[Javascript] Add 10 working days.

BEKIM BACAJ trojani2000 at hotmail.com
Tue Sep 24 20:40:21 CDT 2002


If I understood the problem correctly, you have to extract the weekends or 
ad the number of days that fallitno the weekend of this 10 day prolongation. 
The number wary from 2 - 4 so you have to find out what day of the week the 
user entered the textbox so you can decide how many days to add. (hollyday 
date may also cause some additional probs)
this would be all for now. Cheers!


>From: Andrew Dunn <andrew at d2k.com.au>
>Reply-To: javascript at LaTech.edu
>To: "'javascript at LaTech.edu'" <javascript at LaTech.edu>
>Subject: [Javascript] Add 10 working days.
>Date: Wed, 25 Sep 2002 11:13:04 +1000
>
>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.
>_______________________________________________
>Javascript mailing list
>Javascript at LaTech.edu
>https://lists.LaTech.edu/mailman/listinfo/javascript




_________________________________________________________________
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com




More information about the Javascript mailing list