Month firstMonthOfQuarter()
gets the month corresponding to the first month of this quarter.
firstMonthOfQuarter
has the following syntax.
public Month firstMonthOfQuarter()
The following example shows how to use firstMonthOfQuarter
.
import java.time.LocalDate; import java.time.Month; //from w w w. j av a 2s . com public class Main { public static void main(String[] args) { Month m = Month.from(LocalDate.now()); System.out.println(m.firstMonthOfQuarter()); } }
The code above generates the following result.