Java Day End getMonthEndDate(Long day)

Here you can find the source of getMonthEndDate(Long day)

Description

get Month End Date

License

Apache License

Declaration

public static Long getMonthEndDate(Long day) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.util.Calendar;

public class Main {

    public static Long getMonthEndDate(Long day) {
        Calendar cal = Calendar.getInstance();
        cal.setTimeInMillis(day);/*from   w w  w  .j  ava  2 s .  c o  m*/

        int end = cal.getActualMaximum(Calendar.DATE);
        cal.set(Calendar.DATE, end);

        return cal.getTimeInMillis();
    }
}

Related

  1. getMonthCha(Date start, Date end)
  2. getMonthCount(Date startDate, Date endDate)
  3. getMonthEnd(Date date)
  4. getMonthEndDate(Date date)
  5. getMonthEndDate(int year, int month)
  6. getMonthFirstDays(Date startDate, Date endDate)
  7. getMonths(Date end, Date start)
  8. getMonthsBetweenBeginDateAndEndDate(Date beginDate, Date endDate)
  9. getMonthSpan(Date begin, Date end)