Java Month Day getCurrMonthFirstDay()

Here you can find the source of getCurrMonthFirstDay()

Description

get Curr Month First Day

License

Open Source License

Declaration

public static Date getCurrMonthFirstDay() 

Method Source Code

//package com.java2s;

import java.util.*;

public class Main {

    public static Date getCurrMonthFirstDay() {
        Calendar calendar = Calendar.getInstance();
        Date d = new Date();
        calendar.setTime(d);/*from w  w  w  .  j a  v a 2s  .  com*/
        calendar.set(Calendar.DATE, 1);
        return calendar.getTime();
    }
}

Related

  1. firstMonthDay(String dateTime, int num)
  2. getActualMaximumDayOfMonth(final Date date)
  3. getCurMonthFirstDay()
  4. getCurrentDayOfMonth()
  5. getCurretnMonthFirstDay()
  6. getDayOfMonth()
  7. getDaysInMonth(final Date date)
  8. getDaysOfMonth(Date date)
  9. getDaysOfMonth(Date date)