Package org.joda.time

Examples of org.joda.time.LocalDate.dayOfMonth()


   */
  protected LocalDate parse(int year, FixedWeekdayInMonth fwm) {
    LocalDate date = calendarUtil.create(year, xmlUtil.getMonth(fwm.getMonth()), 1);
    int direction = 1;
    if (fwm.getWhich() == Which.LAST) {
      date = date.withDayOfMonth(date.dayOfMonth().getMaximumValue());
      direction = -1;
    }
    date = moveToNextRequestedWeekdayByDirection(fwm, date, direction);
    date = moveNumberOfRequestedWeeks(fwm, date);
    return date;
View Full Code Here


        periodEndDate = periodEndDate.plusYears(1);
      } else {
        periodEndDate = periodStartDate
            .withMonthOfYear(financialYearBeginningMonth);
      }
      periodEndDate = periodEndDate.dayOfMonth().withMaximumValue();
      break;
    }

        // interest posting always occurs on next day after the period end date.
        periodEndDate = periodEndDate.plusDays(1);
View Full Code Here

                    periodEndDate = new DateTime().withDate(year, 12, 31).toLocalDate();
                }
            break;
            case ANNUAL:
                periodEndDate = periodStartDate.monthOfYear().withMaximumValue();
                periodEndDate = periodEndDate.dayOfMonth().withMaximumValue();
            break;

        // case NO_COMPOUNDING_SIMPLE_INTEREST:
        // periodEndDate = periodStartDate.monthOfYear().withMaximumValue();
        // periodEndDate = periodEndDate.dayOfMonth().withMaximumValue();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.