date To SQL Time - Android java.sql

Android examples for java.sql:Date

Description

date To SQL Time

Demo Code


//package com.java2s;

import java.sql.Time;

public class Main {
    public static Time dateToSQLTime(java.util.Date d) {

        return d != null ? new Time(d.getTime()) : null;
    }/*from www.j  av a 2  s .com*/
}

Related Tutorials