• Post Reply Bookmark Topic Watch Topic
  • New Topic

Java Calender -- need help  RSS feed

 
anirban sarkar
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

How can I get the Date or -th day of first Monday of a given month-year?
E.g.- if I give Dec-2008 it will return the Date of first monday of Dec-2008.

Thanks,
Anirban
 
Joanne Neal
Rancher
Posts: 3742
16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Calendar/GregorianCalendar classes are probably a good place to start. Have a look at the methods they provide and see if you can work out how to do what you want.
[ December 11, 2008: Message edited by: Joanne Neal ]
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!