This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Code to check whether a given date falls on weekend or holidays
 
It's not a secret anymore!