Java Month of Year getTimeByYMD(int year, int month, int day)

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

Description

get Time By YMD

License

Apache License

Declaration

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

Method Source Code

//package com.java2s;
//License from project: Apache License 

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

public class Main {

    public static Date getTimeByYMD(int year, int month, int day) {
        Calendar calendar = Calendar.getInstance();
        calendar.set(year, month - 1, day);
        return calendar.getTime();
    }/*  w  w w . j  a v a2  s  .co m*/
}

Related

  1. getSecondsOfMonth(int year, int month)
  2. getStartAndEndOfMonth(int month, int year)
  3. getStrDayOfWeek(int _year, int _month, int _day)
  4. getThisMonth(int year, int monthIndex)
  5. getTime(int year, int month, int day)
  6. getTimestamp(int year, int month, int day, int hour, int minute, int second, int millisecond)
  7. getTodayAdd(int year, int month, int day)
  8. getWeek(int year, int month, int day)
  9. getWorkDayNum(int year, int month, int start, int end)