Java SQL Date From convertToTime(Date toDate)

Here you can find the source of convertToTime(Date toDate)

Description

convert To Time

License

Open Source License

Declaration

public static java.sql.Time convertToTime(Date toDate) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.util.Date;

public class Main {
    public static java.sql.Time convertToTime(Date toDate) {
        java.sql.Time sql = null;
        sql = new java.sql.Time(toDate.getTime());

        return sql;
    }/*  w  w w  . j ava 2  s . co m*/
}

Related

  1. convertTime(String time)
  2. convertTime2String(long time)
  3. convertTime2TS(long time)
  4. convertTimeToHour(long time)
  5. convertToDateTime(java.util.Date date, String time)
  6. convertToTime(java.util.Date date)
  7. getCNTimezone()
  8. getCurAllTime()
  9. getCurrDateTime()