Java Day of get8BitTime(Date date, int deltaDay)

Here you can find the source of get8BitTime(Date date, int deltaDay)

Description

get Bit Time

License

Open Source License

Declaration

public static String get8BitTime(Date date, int deltaDay) 

Method Source Code

//package com.java2s;

import java.text.SimpleDateFormat;

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

public class Main {

    public static String get8BitTime(Date date, int deltaDay) {
        SimpleDateFormat format = new SimpleDateFormat("yyyyMMdd");
        Calendar cal = Calendar.getInstance();
        cal.setTime(date);//from w w  w. j a  va2 s . c  o m
        cal.add(Calendar.DAY_OF_YEAR, deltaDay);
        return format.format(cal.getTime());
    }
}

Related

  1. formatDate(String day)
  2. formatDay(final Date time)
  3. formatDayTime(String day)
  4. formatShortNameOfDay(final Date date)
  5. get1DayBeforDate()
  6. getAfterDays(String date, String pattern, int afterDays)
  7. getAge(Date birthDay)
  8. getAgeOfCalendar(String birthDayString)
  9. getApisPaxBirthday(String dob)