Java SQL Date Month getSqlDate(int year, int month, int day)

Here you can find the source of getSqlDate(int year, int month, int day)

Description

get Sql Date

License

Open Source License

Declaration

public static Date getSqlDate(int year, int month, int day) 

Method Source Code

//package com.java2s;
import java.sql.Date;

import java.util.Calendar;

public class Main {
    public static Date getSqlDate(int year, int month, int day) {
        Calendar calendar = Calendar.getInstance();
        calendar.set(year, month - 1, day, 0, 0, 0);
        return new Date(calendar.getTimeInMillis());

    }/*from w  w  w .j  av  a 2 s  .c o m*/
}

Related

  1. getMonthStart(Date stamp)
  2. getMulmonthday(String startdate, String enddate)
  3. getNextMonthFirstDate(java.sql.Date date)
  4. getNextMonthStartDate(Date date)
  5. getSqlDate(final int iDay, final int iMonth, final int iYear)
  6. newDate(Integer year, Integer month, Integer day)
  7. toDate(int year, int month, int day)
  8. toSqlDate(int year, int month, int day)