Java Day of Week getDateByYearAndWeekNum(int year, int weekNum)

Here you can find the source of getDateByYearAndWeekNum(int year, int weekNum)

Description

get Date By Year And Week Num

License

Open Source License

Declaration

public static Date getDateByYearAndWeekNum(int year, int weekNum) 

Method Source Code

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

import java.util.Calendar;
import java.util.Date;
import java.util.GregorianCalendar;

public class Main {

    public static Date getDateByYearAndWeekNum(int year, int weekNum) {
        Calendar c = new GregorianCalendar();
        c.set(Calendar.YEAR, year);
        c.set(Calendar.WEEK_OF_YEAR, weekNum);
        return c.getTime();
    }/*from  w  w w  .  j a  v  a2  s  . c o m*/
}

Related

  1. firstDateAfterAddWeeks(Date early, int weeks)
  2. firstDayOfWeek()
  3. getAllDaysDateBetween(Date startDate, Date endDate, DayOfWeek dayOfWeek)
  4. getBounceDateofWeek(Date date)
  5. getDateByWeek(int week)
  6. getDateForCurrentWeekDay(int day)
  7. getDateOfWeek(int week)
  8. getDateOfWeek(int year, int weekOfYear, int i)
  9. getDateOfYearWeek(int yearNum, int weekNum, int dayOfWeek)