Java Year Day getFirstDay4CurrentYear()

Here you can find the source of getFirstDay4CurrentYear()

Description

get First Day Current Year

License

Open Source License

Declaration

public static String getFirstDay4CurrentYear() 

Method Source Code

//package com.java2s;

import java.text.SimpleDateFormat;

import java.util.Date;

public class Main {

    public static String getFirstDay4CurrentYear() {
        SimpleDateFormat df = new SimpleDateFormat("yyyy");
        String todayAsString = df.format(new Date());
        todayAsString = todayAsString + "-01-01";
        return todayAsString;
    }//w w w.j a  va 2 s  .  c  om
}

Related

  1. getCurrYearFirstDay(int year)
  2. getFirstDayOfThisYear()
  3. getLastDayOfTheYear(int year)
  4. getLastDayOfYear(int year)
  5. getLastDayOfYear(int year)