captbaritone / datejs

Automatically exported from code.google.com/p/datejs
Other
1 stars 0 forks source link

Feature Request - Add Business Days #72

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Feature to add business days excluding weekends

For Instance

Date.today().next().thursday().add(2).weekdays()

Should return next monday instead of saturday.

Location specific versions would be aware of the weekend days for the locale.

Though much higher in scope, ability to setup a list of holidays from an
xml or json url would be nice. 

Original issue reported on code.google.com by vinodh.r...@gmail.com on 27 Apr 2009 at 2:09

GoogleCodeExporter commented 8 years ago
Added this feature to my fork: https://github.com/abritinthebay/datejs/

addWeekdays and the syntax sugar .add(2).weekdays() work nicely. Have a look at 
report any issues!

Original comment by darkcr...@gmail.com on 18 Sep 2013 at 11:49