Java LocalDate create from 'of' factory method as of(2020, Month.NOVEMBER, 2)

Description

Java LocalDate create from 'of' factory method as of(2020, Month.NOVEMBER, 2)

import java.time.LocalDate;
import java.time.Month;

public class Main {

   public static void main(String[] args) {
      LocalDate date = LocalDate.of(2020, Month.NOVEMBER, 11);
      System.out.println("Date from specified date: " + date);
   }//from w  w w  .j av  a2s  . c  o  m

}



PreviousNext

Related