Example usage for java.time LocalDate getMonthValue

List of usage examples for java.time LocalDate getMonthValue

Introduction

In this page you can find the example usage for java.time LocalDate getMonthValue.

Prototype

public int getMonthValue() 

Source Link

Document

Gets the month-of-year field from 1 to 12.

Usage

From source file:ui.Analyze.java

private void fillURTgl(LocalDate ld1, LocalDate ld2) {
    thnAkhirUR.setValue(ld1.getYear());//  ww  w  .j a v a  2 s  .  c om
    blnAkhirUR.setValue(ld1.getMonthValue());
    tglAkhirUR.setValue(ld1.getDayOfMonth());
    thnAwalUR.setValue(ld2.getYear());
    blnAwalUR.setValue(ld2.getMonthValue());
    tglAwalUR.setValue(ld2.getDayOfMonth());
}

From source file:ui.Analyze.java

private void fillLabaTgl(LocalDate ld1, LocalDate ld2) {
    thnAkhirLaba.setValue(ld1.getYear());
    blnAkhirLaba.setValue(ld1.getMonthValue());
    tglAkhirLaba.setValue(ld1.getDayOfMonth());
    thnAwalLaba.setValue(ld2.getYear());
    blnAwalLaba.setValue(ld2.getMonthValue());
    tglAwalLaba.setValue(ld2.getDayOfMonth());
}