Java SQL Date getTodayAndTomorrow()

Here you can find the source of getTodayAndTomorrow()

Description

get Today And Tomorrow

License

Apache License

Declaration

public static List<String> getTodayAndTomorrow() 

Method Source Code


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

import java.sql.Date;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.List;

public class Main {
    public static List<String> getTodayAndTomorrow() {
        List<String> dates = new ArrayList<String>();
        Calendar cal = Calendar.getInstance();
        dates.add(new Date(cal.getTimeInMillis()).toString());
        cal.add(Calendar.DATE, 1);
        dates.add(new Date(cal.getTimeInMillis()).toString());
        return dates;
    }//from   w  ww .j ava 2s.  c  o  m
}

Related

  1. getNextDayStr(String curday)
  2. getNow()
  3. getNow()
  4. getNowHour()
  5. getProtobufClass(Object value, Class protobufClass)
  6. getWeekNumber()
  7. getWeekOfMonth(String year, String month, String day)
  8. getYearLater()
  9. hexToBin(String sHexString)