Java Day of Month getFirstMiddleDayOfMonth(Date date)

Here you can find the source of getFirstMiddleDayOfMonth(Date date)

Description

get First Middle Day Of Month

License

Open Source License

Declaration

public static Date getFirstMiddleDayOfMonth(Date date) 

Method Source Code

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

import java.util.Calendar;
import java.util.Date;

public class Main {
    public static Date getFirstMiddleDayOfMonth(Date date) {
        Calendar todayCalendar = Calendar.getInstance();
        todayCalendar.setTime(date);/*www  .  j  a v a 2 s.  co  m*/

        Calendar firstMiddleDayOfmonthCalendar = Calendar.getInstance();

        firstMiddleDayOfmonthCalendar.set(todayCalendar.get(Calendar.YEAR), todayCalendar.get(Calendar.MONTH), 16,
                0, 0, 0);
        return firstMiddleDayOfmonthCalendar.getTime();
    }
}

Related

  1. getDayOfMonth(Date dt)
  2. getDayOfMonth(final Date date)
  3. getFirstDayOfMonth(Date date)
  4. getFirstDayOfMonth(Date date)
  5. getFirstDayOfMonth(java.util.Date date)
  6. getFistDayOfMonth(Date date)
  7. getFromDate(boolean invoiceSearchFromFirstDayOfMonth)
  8. getLastDateOfCurMonth()
  9. getLastDay(int year, int month)