Java Month Day getFirstDayOfCurrentMonth()

Here you can find the source of getFirstDayOfCurrentMonth()

Description

get First Day Of Current Month

License

Open Source License

Declaration

public static String getFirstDayOfCurrentMonth() 

Method Source Code


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

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

public class Main {

    public static String getFirstDayOfCurrentMonth() {
        Calendar cal = Calendar.getInstance();
        cal.set(Calendar.DAY_OF_MONTH, 1);
        return new SimpleDateFormat("yyyy-MM-dd ").format(cal.getTime());
    }// ww  w .java2s  .c o  m
}

Related

  1. getFirstDate(String base_month)
  2. getFirstDateOfCurMonth()
  3. getFirstDateOfMonth(Date theDate)
  4. getFirstday_Month(Date date, int months)
  5. getFirstDayOfCurMonth()
  6. getFirstDayOfLastMonth()
  7. getfirstDayOfMonth()
  8. getFirstDayOfMonth(Calendar c)
  9. getFirstDayOfMonth(Date date)