Java SQL Date Create ConvertToSqlDate(java.util.Date date)

Here you can find the source of ConvertToSqlDate(java.util.Date date)

Description

Convert To Sql Date

License

Apache License

Declaration

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

Method Source Code

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

public class Main {

    public static java.sql.Date ConvertToSqlDate(java.util.Date date) {
        Long times = date.getTime();
        java.sql.Date date1 = new java.sql.Date(times);
        return date1;
    }//from  www . ja  v a2  s .c  om
}

Related

  1. convertToDate(Object o)
  2. convertToMySqlDate(Date date)
  3. convertToSDate(java.util.Date uDate)
  4. convertToSqlDate(Calendar calendar)
  5. convertToSqlDate(java.util.Date argUtilDate)
  6. convertToSQLDate(java.util.Date date)
  7. convertToSqlDate(java.util.Date utilDate)
  8. convertToSqlDate(String str)
  9. convertToUDate(String dateInString)