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