Java SQL Date Create convertSqlDateToJavaDate(java.sql.Date sqlDate)

Here you can find the source of convertSqlDateToJavaDate(java.sql.Date sqlDate)

Description

convert Sql Date To Java Date

License

Apache License

Declaration

public static Date convertSqlDateToJavaDate(java.sql.Date sqlDate) throws ParseException 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.text.ParseException;

import java.util.Date;

public class Main {
    public static Date convertSqlDateToJavaDate(java.sql.Date sqlDate) throws ParseException {
        Date javaDate = null;/*from   w  w  w .j a  v a2s  . com*/
        if (sqlDate != null) {
            javaDate = new Date(sqlDate.getTime());
        }
        return javaDate;
    }
}

Related

  1. convertirSQLDate2String(java.sql.Date sqlDate)
  2. convertJavaDate2SqlDate(java.util.Date date)
  3. converToDate(String yyyy, String mm, String dd)
  4. convertSqlDate(java.util.Date date)
  5. convertSqlDate2Calendar(java.sql.Date date)
  6. convertSQLDateToUtilDate(java.sql.Date date)
  7. convertSqlUtil(java.util.Date d)
  8. convertStringToSql(final String dateStr)
  9. convertToCalendar(Date date)