Java Day End getKalenderWoche(final Date date, final Locale locale)

Here you can find the source of getKalenderWoche(final Date date, final Locale locale)

Description

get Kalender Woche

License

Open Source License

Declaration

public static int getKalenderWoche(final Date date, final Locale locale) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.util.Calendar;
import java.util.Date;
import java.util.Locale;

public class Main {
    public static int getKalenderWoche(final Date date, final Locale locale) {
        final Calendar calendar = Calendar.getInstance(locale);
        calendar.setTime(date);//from   w ww .ja  va  2 s.c o  m
        return calendar.get(Calendar.WEEK_OF_YEAR);
    }
}

Related

  1. getEndOfYear(Date dt)
  2. getEndQuaterly(Date startDate)
  3. getEndSixMonthly(Date startDate)
  4. getEndTimeOfDay(Date date)
  5. getEndTimeOfDayOrNow(Date date)
  6. getLastDayEnding(Date date, int field)
  7. getMinllisBetween(Date beginDate, Date endDate)
  8. getMondays(Date startDate, Date endDate)
  9. getMonthBetween(Date startDate, Date endDate)