public static Date getYearlyAbsoluteAsDate ( RecurringData data ) { Date result ; Integer yearlyAbsoluteDay = data . getDayNumber ( ) ; Integer yearlyAbsoluteMonth = data . getMonthNumber ( ) ; Date startDate = data . getStartDate ( ) ; if ( yearlyAbsoluteDay == null || yearlyAbsoluteMonth == null || startDate == null ) { result = null ; } else { Calendar cal = DateHelper . popCalendar ( startDate ) ; cal . set ( Calendar . MONTH , yearlyAbsoluteMonth . intValue ( ) - 1 ) ; cal . set ( Calendar . DAY_OF_MONTH , yearlyAbsoluteDay . intValue ( ) ) ; result = cal . getTime ( ) ; DateHelper . pushCalendar ( cal ) ; } return result ; }
Retrieves the yearly absolute date .