java.time.LocalDate.atTime(LocalTime time)


java.time.LocalDate.atTime(LocalTime time)

package com.codingdict;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.LocalTime;

public class LocalDateDemo {
   public static void main(String[] args) {

      LocalDate date = LocalDate.parse("2017-02-03");
      System.out.println(date);  
      LocalTime time = LocalTime.parse("10:30:20");
      LocalDateTime date1 = date.atTime(time);
      System.out.println(date1);  
   }
}