Java SQL Date Create createDate(int day, int month, int year)

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

Description

create Date

License

Open Source License

Declaration

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

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import java.util.Calendar;
import java.sql.Date;

public class Main {
    public static Date createDate(int day, int month, int year) {
        Calendar cDate = Calendar.getInstance();
        cDate.set(Calendar.DATE, day);
        cDate.set(Calendar.MONTH, month);
        cDate.set(Calendar.YEAR, year);
        return new Date(cDate.getTimeInMillis());
    }//from  w  ww . java  2 s  . com
}

Related

  1. convertToSQLDate(java.util.Date date)
  2. ConvertToSqlDate(java.util.Date date)
  3. convertToSqlDate(java.util.Date utilDate)
  4. convertToSqlDate(String str)
  5. convertToUDate(String dateInString)
  6. createDateFormater(int dataType)
  7. createFutureDate(java.sql.Date lmpDate, int offSet)
  8. createRecGetStatementsUpdate(String tip, String imeFirstCap)
  9. createSqlDate(String dateStr)