Java Day getLastDay()

Here you can find the source of getLastDay()

Description

get Last Day

License

Open Source License

Declaration

private static String getLastDay() 

Method Source Code

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

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

public class Main {

    private static String getLastDay() {
        SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd");
        Calendar calendar = Calendar.getInstance();
        Date theDate = calendar.getTime();
        String s = df.format(theDate);
        StringBuffer str = new StringBuffer().append(s).append(" 23:59:59");
        return str.toString();

    }//from  w  w w  .j ava  2 s.c om
}

Related

  1. getdaysslice(String startdate, String enddate)
  2. getDayStr(int i, String formatStr)
  3. getDayStringOfDate(Date date)
  4. getDayText(Date day)
  5. getDayTime_End()
  6. getLastDay(Date date)
  7. getLastDay(Date date)
  8. getLastDay(Date date)
  9. getLastDay(String nowdate, String inFormat, String outFormat)