Here you can find the source of asSqlDate(Date date)
Parameter | Description |
---|---|
date | the date to convert. |
public static java.sql.Date asSqlDate(Date date)
//package com.java2s; import java.util.Date; public class Main { /**//from w w w . j a v a 2 s . c o m * Converts the given {@link Date} to a {@link java.sql.Date}. * * @param date the date to convert. * @return a date. */ public static java.sql.Date asSqlDate(Date date) { return new java.sql.Date(date.getTime()); } }