net.webapp2.util.date
Class DateUtils

java.lang.Object
  extended by net.webapp2.util.date.DateUtils

public class DateUtils
extends Object

날짜처리에 관련한 JDK의 번거로운 API를 단순화

Author:
younghoe

Constructor Summary
DateUtils()
           
 
Method Summary
static Date getDate(int year, int month, int dayOfMonth)
          연,월,일 정수를 받아 Date 객체 생성.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DateUtils

public DateUtils()
Method Detail

getDate

public static final Date getDate(int year,
                                 int month,
                                 int dayOfMonth)
연,월,일 정수를 받아 Date 객체 생성. 일의 경우 각 월의 마지막 날을 초과하는 숫자를 입력하는 경우 익월로 계산된다.

Parameters:
year - 연(1 이상의 값을 넣어야 함)
month - 월(1~12)
dayOfMonth - 일(1~31)
Returns:
Date 객체