Java Year Get getYear(Date date)

Here you can find the source of getYear(Date date)

Description

get Year

License

Apache License

Declaration

public static String getYear(Date date) 

Method Source Code

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

import java.text.SimpleDateFormat;

import java.util.Date;

public class Main {
    public static String getYear(Date date) {
        return new SimpleDateFormat("yyyy").format(date);
    }//  www . j ava  2 s.  c  o m
}

Related

  1. getYear()
  2. getYear(Date d)
  3. getYear(Date date)
  4. getYear(Date date)
  5. getYear(Date date)
  6. getYear(Date date)
  7. getYear(Date date)
  8. getYear(Date date)
  9. getYear(Date date, TimeZone timeZone)