• Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
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
 
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
 
Author and ninkuma
Marshal
Posts: 66529
160
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!