Java SQL Date Convert dateToSQLDate(java.util.Date d)

Here you can find the source of dateToSQLDate(java.util.Date d)

Description

date To SQL Date

License

Apache License

Declaration

public static Date dateToSQLDate(java.util.Date d) 

Method Source Code

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

import java.sql.Date;

public class Main {
    public static Date dateToSQLDate(java.util.Date d) {

        return d != null ? new Date(d.getTime()) : null;
    }//from  ww  w  .  j  a  va 2s  .  co m
}

Related

  1. dateToLong(Date date)
  2. dateToSql(Date dat)
  3. dateToSqlDate(Date date)
  4. dateToSqlDate(Date date)
  5. DateToSQLDate(Date pDate)
  6. dateToStamp(String date)
  7. dateToSTR(Date data, String formato)
  8. dateToStr(java.util.Date date)
  9. dateToString(Date date)