Java Year Day todaysYear()

Here you can find the source of todaysYear()

Description

todays Year

License

Open Source License

Declaration

public static String todaysYear() 

Method Source Code

//package com.java2s;
/**//from   ww w. j  a v  a 2 s .c  o  m
 *   Copyright 2010-2015 Maxim Fris, Tobias Olausson
 *
 *   This file is part of James.
 *
 *   James is free software: you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation, either version 3 of the License, or
 *   (at your option) any later version.
 *
 *   James is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *   GNU General Public License for more details.
 *
 *   You should have received a copy of the GNU General Public License
 *   along with James. If not, see <http://www.gnu.org/licenses/>.
 */

import java.util.*;
import java.text.*;

public class Main {
    public static String todaysYear() {
        DateFormat nuSE = new SimpleDateFormat("yyyy");
        return nuSE.format(new Date());
    }
}

Related

  1. getYearWeek(String curday)
  2. getYearWeek(String curday)
  3. lastDay(Integer year, int month)
  4. lastdayofyear()
  5. lastDayOfYear(Integer year)