Here you can find the source of convertToSqlDate(java.util.Date utilDate)
Parameter | Description |
---|---|
utilDate | to convert |
public static java.sql.Date convertToSqlDate(java.util.Date utilDate)
//package com.java2s; /*//w w w .java 2s . co m * Copyright (C) 2010 dungnv. All rights reserved. * VIETTEL PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. */ public class Main { /** * * @param utilDate to convert * @return date */ public static java.sql.Date convertToSqlDate(java.util.Date utilDate) { return new java.sql.Date(utilDate.getTime()); } }