Here you can find the source of getYearLongDesc(Date year)
Parameter | Description |
---|---|
year | a parameter |
public static String getYearLongDesc(Date year)
//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); } }