Android Date Tomorrow Get tomorrowWithHour()

Here you can find the source of tomorrowWithHour()

Description

tomorrow With Hour

Declaration

public static Date tomorrowWithHour() 

Method Source Code

//package com.java2s;
import java.util.Calendar;
import java.util.Date;

public class Main {
    public static Date tomorrowWithHour() {
        Calendar cal = Calendar.getInstance();
        cal.setTime(new Date());
        cal.add(Calendar.DAY_OF_MONTH, 1);
        int hour = cal.get(Calendar.HOUR_OF_DAY) + 1;
        cal.set(Calendar.HOUR_OF_DAY, hour);
        cal.set(Calendar.MINUTE, 0);
        cal.set(Calendar.SECOND, 0);
        cal.set(Calendar.MILLISECOND, 0);
        return cal.getTime();
    }/*from w w w  . ja  v a  2  s .com*/
}

Related

  1. gettomorrow(String today)
  2. nextDate(Date date)