Here you can find the source of convertSqlUtil(java.util.Date d)
Parameter | Description |
---|---|
d | java.util.Date |
public static java.sql.Date convertSqlUtil(java.util.Date d)
//package com.java2s; //License from project: Apache License public class Main { /**//from ww w.ja v a 2 s .co m * convertSqlUtil Realiza la conversion un java.util.Date a java.sql.Date * * @param d java.util.Date * * @return java.util.Date */ public static java.sql.Date convertSqlUtil(java.util.Date d) { java.sql.Date res = new java.sql.Date( new java.util.Date().getTime()); if (d != null) { res = new java.sql.Date(d.getTime()); } return res; } }