Calendar in Java

In Java , I would like to determine if a 'Monday' is the first or second etc.

How do we do that. We have the Calendar. WeekOfMonth. That will give us only the week number of a day.

thanks in advance
expertsitAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Mick BarryJava DeveloperCommented:
Use Calendar.DAY_OF_WEEK and Calendar.DATE
Kelvin_KingCommented:
These links have some examples on getting the day of the week

http://www.rgagnon.com/javadetails/java-0100.html
http://javaalmanac.com/egs/java.util/GetDaysInMonth.html

Also, the Calendar API has more functions which you can use.

http://java.sun.com/j2se/1.4.2/docs/api/java/util/Calendar.html
Manikandan ThiagarajanSenior consultantCommented:

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Amazon Web Services

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

expertsitAuthor Commented:
Thanks to you all.
Mick BarryJava DeveloperCommented:
how is that different from what I and Kelvin_King already suggested?
expertsitAuthor Commented:
Ok. When I went back to my question this morning, there were several replies to it. I went through the sites mentioned and found answer to my problem.
I then clicked the 'Accept Answer' to one of them. (I could not accept multiple answers).

That is why I mentioned 'Thanks to you all' in my comments.

Mick BarryJava DeveloperCommented:
thanks for the clarification :)
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java

From novice to tech pro — start learning today.