Java SQL Date from Util Date getSqlDateDefaultFormat(java.sql.Date date)

Here you can find the source of getSqlDateDefaultFormat(java.sql.Date date)

Description

get Sql Date Default Format

License

Open Source License

Declaration

public static String getSqlDateDefaultFormat(java.sql.Date date) 

Method Source Code

//package com.java2s;

public class Main {
    public static String getSqlDateDefaultFormat(java.sql.Date date) {
        String str = null;//from ww w.  j a v a2 s.co m
        try {
            if (date != null)
                str = date.toString();
        } catch (Exception e) {

        }
        return str;
    }
}

Related

  1. getSQLDate(final Date oDate)
  2. getSqlDate(java.util.Date utilDate)
  3. getSqlDateFromDateNumber(short dateNumber)