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

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

Description

convert Date From SQL Date

License

Apache License

Declaration

public static Date convertDateFromSQLDate(java.sql.Date sqlDate) 

Method Source Code

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

import java.util.Date;

public class Main {
    public static Date convertDateFromSQLDate(java.sql.Date sqlDate) {
        if (null == sqlDate) {
            return null;
        }//from   ww w  .j  ava2 s  . c o  m

        return new Date(sqlDate.getTime());
    }
}

Related

  1. beforeNow(final Date d)
  2. beginOfDay(Date date)
  3. castToSqlDate(Object value)
  4. convert(Date date)
  5. convertDate(java.sql.Date date)
  6. convertDateFromSqlToUtil(java.sql.Date sqlDate)
  7. convertDateFromString(String inputDateString)
  8. convertDateFromUtilToSql(java.util.Date utilDate)
  9. convertDateIfNecessary(Date date)