Java Year Month createDate(int year, int month, int dayOfMonth)

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

Description

create Date

License

Open Source License

Declaration

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

Method Source Code


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

import java.util.*;

public class Main {
    private static final Calendar CALENDAR = Calendar.getInstance();

    public static Date createDate(int year, int month, int dayOfMonth) {
        CALENDAR.set(Calendar.YEAR, year);
        CALENDAR.set(Calendar.MONTH, month);
        CALENDAR.set(Calendar.DAY_OF_MONTH, dayOfMonth);
        return CALENDAR.getTime();
    }/*  www  .jav a 2  s  .com*/
}

Related

  1. AddMonths(int yearMonth, int interval)
  2. calculatorDate(int incrementYear, int incrementMonth, int incrementDay, int incrementHour, int incrementMin, int incrementSec)
  3. createCalendar(int year, int month, int date, int hour, int minute, int second)
  4. createDate(final int year, final int month, final int day, final int hour, final int minutes, final int seconds, final int miliseconds)
  5. createDate(int year, int month, int day)
  6. date(final int year, final int month, final int day, final int hour, final int minute, final int second)
  7. date(int year, int month, int day)
  8. Date2Long(int year, int month, int date)
  9. encodeDateTime(int year, int month, int day, int hour, int minutes, int seconds)