Ver originalObject value1 = jSpinner1.getValue();String time1 = new SimpleDateFormat("HH:mm:ss").format(value1); Object value2 = jSpinner2.getValue();String time2 = new SimpleDateFormat("HH:mm:ss").format(value2);