Java SQL Date to Util Date toUtilDateFromSqlDate(java.sql.Date p_sqlDate)

Here you can find the source of toUtilDateFromSqlDate(java.sql.Date p_sqlDate)

Description

to Util Date From Sql Date

License

Apache License

Declaration

public static java.util.Date toUtilDateFromSqlDate(java.sql.Date p_sqlDate) 

Method Source Code

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

public class Main {

    public static java.util.Date toUtilDateFromSqlDate(java.sql.Date p_sqlDate) {
        java.util.Date returnDate = null;
        if (p_sqlDate != null) {
            returnDate = new java.util.Date(p_sqlDate.getTime());
        }/*w w w  . ja  v  a 2 s  .com*/
        return returnDate;
    }
}

Related

  1. toUtilDate(Date date)
  2. toUtilDate(java.sql.Date d)
  3. toUtilDate(java.sql.Date date)
  4. toUtilDate(String sDate, String format)