Java Today getTodayEnd()

Here you can find the source of getTodayEnd()

Description

get Today End

License

Open Source License

Declaration

public static String getTodayEnd() 

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 {
    public static final SimpleDateFormat longDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

    public static String getTodayEnd() {
        Calendar calendar = Calendar.getInstance();
        calendar.set(Calendar.HOUR_OF_DAY, 23);
        calendar.set(Calendar.MINUTE, 59);
        calendar.set(Calendar.SECOND, 59);
        Date date = new Date(calendar.getTimeInMillis());
        return longDateFormat.format(date);
    }/*from  w  ww.  j  av  a2  s  .  co m*/
}

Related

  1. getTodayDateAsString()
  2. getTodayDateInString()
  3. getTodayDbFormat()
  4. getTodayDisplayString()
  5. getTodayEnd()
  6. getToDayEndTime()
  7. getTodayFolder()
  8. getTodayFormat(String format)
  9. getTodayFormatString(String pattern)