Java SQL Date from Util Date getSqlDateFromDateNumber(short dateNumber)

Here you can find the source of getSqlDateFromDateNumber(short dateNumber)

Description

get Sql Date From Date Number

License

Open Source License

Declaration

public static java.sql.Date getSqlDateFromDateNumber(short dateNumber) 

Method Source Code

//package com.java2s;

public class Main {
    public static java.sql.Date getSqlDateFromDateNumber(short dateNumber) {
        return new java.sql.Date(dateNumber * (1000L * 60 * 60 * 24));
    }//  w w w .  ja va 2 s .c  om
}

Related

  1. getSQLDate(final Date oDate)
  2. getSqlDate(java.util.Date utilDate)
  3. getSqlDateDefaultFormat(java.sql.Date date)