Android Date Get getDate(int day, int month, int year)

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

Description

get Date

Declaration

private static Date getDate(int day, int month, int year) 

Method Source Code

//package com.java2s;
import java.util.*;
import static java.util.Calendar.*;

public class Main {
    private static Date getDate(int day, int month, int year) {
        return getCalendar(day, month, year).getTime();
    }//from  w ww.  j a  va2 s. c o m

    private static Calendar getCalendar(int day, int month, int year) {
        Calendar cal = getInstance(new SimpleTimeZone(0, "GMT"));
        cal.clear();
        cal.set(YEAR, year);
        cal.set(MONTH, month);
        cal.set(DAY_OF_MONTH, day);
        return cal;
    }
}

Related

  1. getCurrentDateYearMonthDateHourMinuteSecond()
  2. createDate(final int month, final int day, final int year)
  3. getDate(int year, int month)
  4. getDateFromString(String dateString)
  5. getCurrentlyDate()