private static Date rollGetDate ( Calendar calendar , int days ) { Calendar easterSunday = ( Calendar ) calendar . clone ( ) ; easterSunday . add ( Calendar . DATE , days ) ; return easterSunday . getTime ( ) ; }
Add the given number of days to the calendar and convert to Date .