Java Year Day lastdayofyear()

Here you can find the source of lastdayofyear()

Description

lastdayofyear

License

Open Source License

Declaration

public static String lastdayofyear() 

Method Source Code

//package com.java2s;
/*//from  w w  w. ja  v a 2s. c o  m
 * Copyright 2010 Mttang.com All right reserved. This software is the
 * confidential and proprietary information of Mttang.com ("Confidential
 * Information"). You shall not disclose such Confidential Information and shall
 * use it only in accordance with the terms of the license agreement you entered
 * into with Mttang.com.
 */

import java.text.SimpleDateFormat;

public class Main {

    public static String lastdayofyear() {
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy");
        String year = sdf.format(new java.util.Date());
        return year + "-12-31";
    }
}

Related

  1. getYearFirstDay(String date)
  2. getYearLastDay(String dateString)
  3. getYearWeek(String curday)
  4. getYearWeek(String curday)
  5. lastDay(Integer year, int month)
  6. lastDayOfYear(Integer year)
  7. todaysYear()