Java Date Time Java Java API
java.time.LocalTime
public LocalDateTime atDate(LocalDate date)
Combines this time fields with the provided LocalDate to create a new instance of LocalDateTime.
package com.logicbig.example.localtime;import java.time.LocalDate;import java.time.LocalDateTime;import java.time.LocalTime;public class AtDateExample { public static void main (String... args) { LocalTime d = LocalTime.of(13, 10, 20); LocalDateTime d2 = d.atDate(LocalDate.of(2016, 12, 25)); System.out.println(d2); }}
2016-12-25T13:10:20