Example usage for org.joda.time DateMidnight withWeekOfWeekyear

List of usage examples for org.joda.time DateMidnight withWeekOfWeekyear

Introduction

In this page you can find the example usage for org.joda.time DateMidnight withWeekOfWeekyear.

Prototype

public DateMidnight withWeekOfWeekyear(int weekOfWeekyear) 

Source Link

Document

Returns a copy of this date with the week of weekyear field updated.

Usage

From source file:org.wicketstuff.ddcalendar.CalendarWeek.java

License:Apache License

public DateMidnight getFirstDay() {
    DateMidnight date = new DateMidnight(year, 1, 1);
    date = date.withWeekOfWeekyear(week);
    date = date.withDayOfWeek(1);//from ww  w  . j  ava2  s .  c  o  m
    return date;
}

From source file:org.wicketstuff.ddcalendar.CalendarWeek.java

License:Apache License

public DateMidnight getLastDay() {
    DateMidnight date = new DateMidnight(year, 1, 1);
    date = date.withWeekOfWeekyear(week);
    date = date.withDayOfWeek(7);//from   www .  ja va2 s . c om
    return date;
}