Java Day of getSpecifiedDayAfter(String specifiedDay)

Here you can find the source of getSpecifiedDayAfter(String specifiedDay)

Description

get Specified Day After

License

Open Source License

Declaration

public static String getSpecifiedDayAfter(String specifiedDay) throws ParseException 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.*;

public class Main {
    public static String getSpecifiedDayAfter(String specifiedDay) throws ParseException {
        Calendar c = Calendar.getInstance();
        Date date = null;/*from w  ww.  jav  a  2  s .  c  om*/
        date = new SimpleDateFormat("yy-MM-dd").parse(specifiedDay);
        c.setTime(date);
        int day = c.get(Calendar.DATE);
        c.set(Calendar.DATE, day + 1);

        String dayAfter = new SimpleDateFormat("yyyy-MM-dd").format(c.getTime());

        return dayAfter;

    }
}

Related

  1. getPriorDay(int offset, String pattern)
  2. getRunningTime(Date date, SimpleDateFormat sday, String line)
  3. getSetDate(Date dt, int dayNum)
  4. getSignContinusDay(Date lastSignTime)
  5. getSpcilNumDayArray(Date startDate, int num)
  6. getSpecifiedDayAfter(String specifiedDay, int afterDay)
  7. getSpecifiedDayTimeAfter(Date date)
  8. getStandardDayFormat(Date day)
  9. getStartDate(int days, String strEndDate)