LocalDate to java.sql.Date - Java java.sql

Java examples for java.sql:Date

Description

LocalDate to java.sql.Date

Demo Code


//package com.java2s;

import java.sql.Date;

import java.time.LocalDate;

public class Main {
    public static Date toDate(LocalDate localDate) {
        return Date.valueOf(localDate);
    }//  w  ww .  j a  v  a 2 s.  co m
}

Related Tutorials