Java SQL Date Create convertToSqlDate(java.util.Date utilDate)

Here you can find the source of convertToSqlDate(java.util.Date utilDate)

Description

convert To Sql Date

License

Open Source License

Parameter

Parameter Description
utilDate to convert

Return

date

Declaration

public static java.sql.Date convertToSqlDate(java.util.Date utilDate) 

Method Source Code

//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());
    }
}

Related

  1. convertToSDate(java.util.Date uDate)
  2. convertToSqlDate(Calendar calendar)
  3. convertToSqlDate(java.util.Date argUtilDate)
  4. convertToSQLDate(java.util.Date date)
  5. ConvertToSqlDate(java.util.Date date)
  6. convertToSqlDate(String str)
  7. convertToUDate(String dateInString)
  8. createDate(int day, int month, int year)
  9. createDateFormater(int dataType)