Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Javascript] Add 10 working days.


  • From: javascript@xxxxxxxxxx (BEKIM BACAJ)
  • Subject: [Javascript] Add 10 working days.
  • Date: Wed, 25 Sep 2002 01:40:21 +0000

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@xxxxxxxxxx>
>Reply-To: javascript@xxxxxxxxxx
>To: "'javascript@xxxxxxxxxx'" <javascript@xxxxxxxxxx>
>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@xxxxxxxxxx
>https://lists.LaTech.edu/mailman/listinfo/javascript




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