File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Ranch Office and the fly likes Code to check whether a given date falls on weekend or holidays Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » This Site » Ranch Office
Reply locked New topic
Author

Code to check whether a given date falls on weekend or holidays

Sonali Sabnis
Greenhorn

Joined: Aug 25, 2008
Posts: 20
Hi,

Can anyone provide a code fragment which will accept a date and check if it falls on weekend or holidays.
If it falls on weekend or holidays then I need to increment that date in order to check again if the new date( incremented) falls on holiday or weekend.

Appriciate yoor help and quick responses.
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

I see you posting in the intermediate forum so this copy will be closed.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Code to check whether a given date falls on weekend or holidays