my dog learned polymorphism*
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Code to check whether a given date falls on weekend or holidays
 
Similar Threads
Stumped By HashSet
Code to check whether a given date falls on weekend or holidays
US Holidays Calendar
HAPPY NEW YEAR 2007 !!!
Add days, but not weekend days