Java Day From getDateFromDayNum(int dayNum)

Here you can find the source of getDateFromDayNum(int dayNum)

Description

get Date From Day Num

License

Open Source License

Declaration

public static Date getDateFromDayNum(int dayNum) 

Method Source Code

//package com.java2s;

import java.util.*;

public class Main {

    public static Date getDateFromDayNum(int dayNum) {
        Calendar calendar = Calendar.getInstance();
        calendar.setTime(new Date());
        calendar.set(Calendar.DAY_OF_MONTH, dayNum);
        return calendar.getTime();
    }/*  w  w  w .  ja  v  a 2 s.c  om*/
}

Related

  1. get23HourOfDay(Date date)
  2. getAge(Date birthDay)
  3. getBeforeDate_(Date date, int day)
  4. getDateByDay(Date date)
  5. getDateByNum(int day)
  6. getDateUpDay(Date d)
  7. getDay(Date date)
  8. getDay(Date date)
  9. getDay(Date date, int day)