Java SQL Date Create asSqlDate(Date date)

Here you can find the source of asSqlDate(Date date)

Description

as Sql Date

License

Apache License

Declaration

public static java.sql.Date asSqlDate(Date date) 

Method Source Code


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

import java.util.Date;

public class Main {
    public static java.sql.Date asSqlDate(Date date) {
        return date != null ? new java.sql.Date(date.getTime()) : null;
    }//from   w w  w . j  av a 2 s. c om
}

Related

  1. asDate(java.sql.Date sqlDate)
  2. asDate(Object tsObj)
  3. asSqlDate(Date date)
  4. asSqlDate(String date)
  5. beforeNow(final Date d)
  6. beginOfDay(Date date)