Java SQL LocalDate convertLocalDateToDatabaseDate(LocalDate localDate)

Here you can find the source of convertLocalDateToDatabaseDate(LocalDate localDate)

Description

convert Local Date To Database Date

License

Open Source License

Declaration

public static Date convertLocalDateToDatabaseDate(LocalDate localDate) 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import java.sql.Date;

import java.time.LocalDate;

public class Main {
    public static Date convertLocalDateToDatabaseDate(LocalDate localDate) {
        return Date.valueOf(localDate);
    }/*from  w w w.ja  v a 2s  . c o  m*/
}

Related

  1. asLocalDate(Date date)
  2. asLocalDate(Date date)
  3. asLocalDate(java.util.Date date, ZoneId zone)
  4. asUtilDate(Object date)
  5. asUtilDate(Object date, ZoneId zone)
  6. getDay(Date date)
  7. getLastDate()
  8. getLocalDate()
  9. getLocalDateFromUtilDate(Date input)