Android Year Get getCurrentYear()

Here you can find the source of getCurrentYear()

Description

get Current Year

Declaration

public static String getCurrentYear() 

Method Source Code

//package com.java2s;
import java.text.DateFormat;

import java.text.SimpleDateFormat;

public class Main {
    public static String getCurrentYear() {
        DateFormat tempDate = new SimpleDateFormat("yyyy");
        return tempDate.format(new java.util.Date());
    }/*from   ww  w.j  a va 2 s  .  c  om*/
}

Related

  1. getIndexYear(Date origin, int index)
  2. getCurrentYear()
  3. getCurrentYear()
  4. getBeforeYear()
  5. isInCurrentYear(long lTime)
  6. getCurrentYear()