date To SQL Date - Android java.sql

Android examples for java.sql:Date

Description

date To SQL Date

Demo Code


//package com.java2s;

import java.sql.Date;

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

        return d != null ? new Date(d.getTime()) : null;
    }// ww  w.  j a  va2  s  .c  om
}

Related Tutorials