Java Year Get getYearLongDesc(Date year)

Here you can find the source of getYearLongDesc(Date year)

Description

This method is used for getting year long description

License

Open Source License

Parameter

Parameter Description
year a parameter

Declaration

public static String getYearLongDesc(Date year) 

Method Source Code

//package com.java2s;
/**/*from w w  w  .ja v  a 2  s.c o m*/
 * Copyright (C) 2013 Company. All Rights Reserved. 
 * 
 * This software is the proprietary information of Company . 
 * Use is subjected to license terms. 
 *
 * @since Jul 17, 2013 11:48:25 PM
 * @author SPA
    
 *
 */

import java.text.SimpleDateFormat;

import java.util.Date;

public class Main {
    /**
     * This method is used for getting year long description
     * 
     * @param year
     * @return
     */
    public static String getYearLongDesc(Date year) {
        SimpleDateFormat sdf = new SimpleDateFormat();
        sdf.applyPattern("yyyy");
        return sdf.format(year);
    }
}

Related

  1. getYear(String[] contents)
  2. getYearCount(String from, String to)
  3. getYearEnd(Date date)
  4. getYearForDate(String dateToCheck, String pattern)
  5. getYearList(int years)
  6. getYearlyIntervals(Date start, Date end)
  7. getYearName(String dateString)
  8. getYearsOfAge(Date birthDate, Date nowDate)
  9. getYearString()