Java Day Of Year firstdayofyear()

Here you can find the source of firstdayofyear()

Description

firstdayofyear

License

Open Source License

Declaration

public static String firstdayofyear() 

Method Source Code

//package com.java2s;
/*//w ww  .ja  v  a2 s  .  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 firstdayofyear() {
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy");
        String year = sdf.format(new java.util.Date());
        return year + "-01-01";
    }
}

Related

  1. dayOfYear(int year, int month, int day)
  2. daysInPriorYears(final int y)
  3. daysInPriorYears(int yr)
  4. daysInPriorYears(int yr, boolean use1904windowing)
  5. daysInYear(int yearInteger)
  6. getDayFromYear(String year)
  7. getDaysInYear(final int year)
  8. getDaysInYear(int year)
  9. getDaysInYear(int year)