i need to get the epi-week of a given date,so it'd be very helpful if there is a method or api to achieve this for Java.
The definition for epi-week is the following "The first epi week of the year ends, by definition, on the first Saturday of January, as long as it falls at least four days into the month. Each epi week begins on a Sunday and ends on a Saturday."
thanks,
You can translate it to:
start of week = Sunday
minimalDaysInFirstWeek = 4
For Java pre 8, the class
java.util.GregorianCalendar
defines methods like setMinimalDaysInFirstWeek(4) and setFirstDayOfWeek(Calendar.SUNDAY)For Java-8, you can refer to the class WeekFields
Update due to question in comment: