Calendar c = Calendar.getInstance(); Date date = new Date(); c.setTime(date); c.add(Calendar.MINUTE, 30); Date date = new Date(); if(date.getTime()>c.getTime().getTime()){ }