Java Year Get getThisYear()

Here you can find the source of getThisYear()

Description

get This Year

License

Apache License

Declaration

public static String getThisYear() 

Method Source Code

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

import java.text.SimpleDateFormat;

public class Main {
    public static SimpleDateFormat format = new SimpleDateFormat("yyyyMMdd");

    public static String getThisYear() {
        String dateString = "";

        java.text.SimpleDateFormat formatter = new java.text.SimpleDateFormat("yyyy");
        java.util.Date currentTime_1 = new java.util.Date();
        dateString = formatter.format(currentTime_1);

        return dateString;
    }/*from   www  . jav a 2s .  c o  m*/
}

Related

  1. getOfflimitDates(int year)
  2. getRandomDate(int firstYar, int lastYear)
  3. getSpecficYearEnd(Date date, int amount)
  4. getStartEndOFWeek(int enterWeek, int enterYear)
  5. getStartOfYear()
  6. getThisYear()
  7. getThisYear()
  8. getTwoDigitYear()
  9. getTwoYearsBefore(int date)