Android Date Current Get getCurrentDate()

Here you can find the source of getCurrentDate()

Description

get Current Date

Declaration

public static Calendar getCurrentDate() 

Method Source Code

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

public class Main {
    public static Calendar getCurrentDate() {
        Calendar currDate = Calendar.getInstance();
        currDate.setTimeInMillis(System.currentTimeMillis());
        currDate.set(Calendar.MONTH, currDate.get(Calendar.MONTH) + 1);
        return currDate;
    }//  ww  w  .  ja va2 s .  c om
}

Related

  1. getCurrentDateStamp()
  2. getCurrentDate()
  3. getCurrentDate()
  4. getCurrentDateline()
  5. getCurrentDate()
  6. getCurrentDateJSONString()