Java SQL Date create from LocalDate
import java.sql.Date; import java.time.LocalDate; public class Main { public static void main(String[] args) { LocalDate localDate = LocalDate.now(); System.out.println("local date:"+localDate); //from w ww. j a v a 2 s .co m Date date = Date.valueOf(localDate); System.out.println("date:"+date); } }