public static void main(String[] args) {
LocalDateTime begin = LocalDateTime.of(LocalDate.parse("2019-01-23"), LocalTime.MIN);
LocalDateTime end = LocalDateTime.of(LocalDate.parse("2019-01-23"), LocalTime.MAX);
Date date1 = Date.from(begin.atZone(ZoneId.systemDefault()).toInstant());
Date date2 = Date.from(end.atZone(ZoneId.systemDefault()).toInstant());
}