Possible Duplicate:
Get number of weekdays in a given month
How to calculate working days of any month? cal_days_in_month
returns simply the total number of days in a month. My task is to calculate number of days in month except Saturdays and Sundays or Sundays alone. Any method to find this?