Java Year Get getStartOfYear()

Here you can find the source of getStartOfYear()

Description

get Start Of Year

License

Open Source License

Declaration

public static Date getStartOfYear() throws ParseException 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;

public class Main {
    public static Date getStartOfYear() throws ParseException {
        return new SimpleDateFormat("dd.MM.yyyy").parse("01.01." + Calendar.getInstance().get(Calendar.YEAR));
    }// w w w  .ja v  a 2s  .  co m
}

Related

  1. getNextYearMonthStr()
  2. getOfflimitDates(int year)
  3. getRandomDate(int firstYar, int lastYear)
  4. getSpecficYearEnd(Date date, int amount)
  5. getStartEndOFWeek(int enterWeek, int enterYear)
  6. getThisYear()
  7. getThisYear()
  8. getThisYear()
  9. getTwoDigitYear()