Click here to Skip to main content
15,886,873 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I need help on how to write this in JAVA
My input will be bunch of dates Ex 1-10-2018, 1-15-2018 .. etc
I need to group them by week

What I have tried:

I need help on how to write this in JAVA
My input will be bunch of dates Ex 1-10-2018, 1-15-2018 .. etc
I need to group them by week
Posted
Updated 16-Apr-18 10:27am

1 solution

The GregorianCalendar class[^] should do the trick (have a look at the get method with the WEEK_OF_YEAR field).
 
Share this answer
 
Comments
Maciej Los 16-Apr-18 16:36pm    
5ed!
CPallini 16-Apr-18 16:49pm    
Thank you, man!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900