private static void myHandler() throws ParseException {
  String dtime1 = "23/Apr/2019:04:08:00 +0800";
  SimpleDateFormat sdf1 = new SimpleDateFormat("dd/MMM/yyyy:hh:mm:ss Z", Locale.US);
  Date date = sdf1.parse(dtime1);
  System.out.println(date.getHours());
}

04-25 18:50