public Date createDate ( int month , int day , int year , int hour , int minute , int second , int millisecond ) { GregorianCalendar gc = new GregorianCalendar ( ) ; gc . clear ( ) ; gc . set ( Calendar . MONTH , month - 1 ) ; gc . set ( Calendar . DAY_OF_MONTH , day ) ; gc . set ( Calendar . YEAR , year ) ; gc . set ( Calendar . HOUR_OF_DAY , hour ) ; gc . set ( Calendar . MINUTE , minute ) ; gc . set ( Calendar . SECOND , second ) ; gc . set ( Calendar . MILLISECOND , millisecond ) ; return gc . getTime ( ) ; }
Create a date from the given data .