Click here to Skip to main content
13,735,540 members
Rate this:
 
Please Sign up or sign in to vote.
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 16-Apr-18 10:12am
Updated 16-Apr-18 10:27am

1 solution

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

The GregorianCalendar class[^] should do the trick (have a look at the get method with the WEEK_OF_YEAR field).
  Permalink  
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)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Cookies | Terms of Service
Web06-2016 | 2.8.180920.1 | Last Updated 16 Apr 2018
Copyright © CodeProject, 1999-2018
All Rights Reserved.
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100