Java Date After getDateTimeAfter(final Date _from, final int _time_type, final int _count)

Here you can find the source of getDateTimeAfter(final Date _from, final int _time_type, final int _count)

Description

get Date Time After

License

Apache License

Declaration

public static Date getDateTimeAfter(final Date _from, final int _time_type, final int _count) 

Method Source Code

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

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

public class Main {
    public static Date getDateTimeAfter(final Date _from, final int _time_type, final int _count) {
        final Calendar c = Calendar.getInstance();
        if (_from != null) {
            c.setTime(_from);/*from  w  w w  .j  a  v a2 s.c o m*/
        }
        c.add(_time_type, _count);
        return c.getTime();
    }
}

Related

  1. getDateAfter(Date date, int days)
  2. getDateAfter(Date date, int increment)
  3. getDateAfterAddition(Date date, int days)
  4. getDateAfterMonths(Date start, int months)
  5. getDateScopeAfterMonth(int year, int month)
  6. getMonthAfter(final Date _from, final int _mons)
  7. getNDayAfterCurrentDate(int n)
  8. getSpecifiedDayAfter(Date date, int num)
  9. getSpecifiedDayAfter4Date(Date date)