wood burning stoves 2.0
The moose likes Beginning Java and the fly likes Number of weeks in a month Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Number of weeks in a month" Watch "Number of weeks in a month" New topic

Number of weeks in a month

Brian Agius

Joined: Oct 30, 2002
Posts: 9
I need to know the number of weeks in a month. It seems that the best class to use is the calendar class. Is there anything else i shoudl consider ?

Regards<br /> <br />BA
Greg Charles

Joined: Oct 01, 2001
Posts: 2968

The number of full weeks in a month is four. Do you mean the number of a particular days, like Mondays? For that, I think the GregorianCalendar class would do the trick, with a bit of code on your part of course.
I agree. Here's the link: http://aspose.com/file-tools
subject: Number of weeks in a month
It's not a secret anymore!