Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

URGENT help me java dates

Status
Not open for further replies.

tejaspillai

Programmer
Dec 17, 2000
4
US
hi,
i would like to know how to find weeks in a particular month,how to identify first & last day of each week in a given month .
ex:
for aug 2001 it should display
week 1 : 1 & 4
week 2 : 5 & 11
week 3: 12 & 18
week 4 : 19 & 25
week 5 : 26 & 31

thanks
tejas
 
use java.util.Calendar

play around with the DAY_OF_WEEK and DAY_OF_MONTH fields...must be a solution in there somewhere
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top