Android Day Get getNextDay(Date d2)

Here you can find the source of getNextDay(Date d2)

Description

get Next Day

Declaration

public static Date getNextDay(Date d2) 

Method Source Code

//package com.java2s;

import java.util.Calendar;
import java.util.Date;

public class Main {
    public static Date getNextDay(Date d2) {
        if (d2 == null)
            d2 = new Date();
        Calendar c1 = Calendar.getInstance();
        c1.setTimeInMillis(d2.getTime() + 24 * 60 * 60 * 1000);
        return c1.getTime();

    }// ww  w .  ja  v  a2  s . co m
}

Related

  1. getWeatherDateStr(int day)
  2. getArrayDiffDays(String startDate, String endDate)
  3. getIndexDay(Date origin, int index)
  4. getDateOfLastSunday(Date d)
  5. getStartNextDay(Date d2)
  6. getNextDateForDay(int calendarDay)
  7. getHashByDay(String date)
  8. getJulianDay(Calendar cal)
  9. getIntervalDays(String sd, String ed)