public static Date addWeeks ( Date d , int weeks ) { Calendar cal = Calendar . getInstance ( ) ; cal . setTime ( d ) ; cal . add ( Calendar . WEEK_OF_YEAR , weeks ) ; return cal . getTime ( ) ; }
Add weeks to a date