Android Gregorian Date Create getCalendar()

Here you can find the source of getCalendar()

Description

get Calendar

Declaration

private static Calendar getCalendar() 

Method Source Code

//package com.java2s;
import java.util.Calendar;
import java.util.Date;
import java.util.GregorianCalendar;

public class Main {
    private static Calendar getCalendar() {
        Calendar calendar = GregorianCalendar.getInstance();
        calendar.setTime(new Date());
        return calendar;
    }/*from w w  w  .  java 2 s  .  c om*/
}

Related

  1. isGregorianDate(int year, int month, double day)
  2. isValid(int year, int month, int day)
  3. getDateObj(int year, int month, int day)
  4. dateInts2String(int year, int month, int day)