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