java.time.LocalDateTime.of(LocalDate date, LocalTime time)


java.time.LocalDateTime.of(LocalDate date, LocalTime time)

package com.codingdict;



import java.time.LocalDate;

import java.time.LocalDateTime;

import java.time.LocalTime;



public class LocalDateTimeDemo {

   public static void main(String[] args) {



      LocalDate localDate = LocalDate.parse("2017-02-03");

      LocalTime localTime = LocalTime.parse("12:30:30");

      LocalDateTime date = LocalDateTime.of(localDate, localTime);

      System.out.println(date);  

   }

}