Java SQL Date Convert toJavaDate(java.sql.Date date)

Here you can find the source of toJavaDate(java.sql.Date date)

Description

to Java Date

License

Open Source License

Declaration

public static java.util.Date toJavaDate(java.sql.Date date) 

Method Source Code

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

public class Main {
    public static java.util.Date toJavaDate(java.sql.Date date) {
        if (date == null) {
            return null;
        }/*from ww  w.  jav a 2s . c  o m*/

        return new java.util.Date(date.getTime());
    }
}

Related

  1. toDBDate(String str)
  2. toEnglishDate(String stringDate)
  3. toGMT(final Date ts)
  4. toInt(java.util.Date v)
  5. toIntDate(Object object, int iDefault)
  6. toJavaDate(java.sql.Date sqlDate)
  7. toLong(java.util.Date v)
  8. toName(Date date)
  9. totalUpdateCount(int[] result)