• Post Reply Bookmark Topic Watch Topic
  • New Topic

Week no, Week Start Date & Week EndDate from give Date Range  RSS feed

 
moola reddy
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

How to get week No, week start date and week end date from a given Date range
example: Date Range 01/11/2006 - 30/12/2006

How to get

WeekNO WeekStartDate - WeekEndDate

42 01/11/2006 - 04/11/2006
43 06/11/2006 - 11/11/2006

Thank you
 
pascal betz
Ranch Hand
Posts: 547
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
take a look at the Calendar class and its get() method (including the Calendar.WEEK_OF_YEAR fields). does this work ?

pascal
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66304
152
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please reserve this forum for advanced questions. This one has been moved to the beginner forum.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!