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