• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

Java calender get weeks in month, start date and enddate

 
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi

I have a requirement to get all weeks in month and start, end date of each week

my only input is year

input - year -2009
------

output i required
-------------------
example
----------
month - january

week1 start date end date
week2 start date end date
week3 start date end date
week4 start date end date
week5 start date end date

month - feburary

week1 start date end date
week2 start date end date
week3 start date end date
week4 start date end date

please help me to write the logic?

asap i need to finish this so please help me?
 
Java Cowboy
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Show us what you tried yourself (JavaRanch is not a code mill). If you get stuck somewhere, explain exactly what the problem is.

If you don't know how to start on this: Have a look at the API documentation of class java.util.Calendar if there are useful methods that you can use for this.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic