I have a JSpinner
I would like to show only date(without time) in it.
This is what I do:
SpinnerDateModel model = new SpinnerDateModel();
model.setCalendarField(Calendar.DAY_OF_YEAR);
dataRozpoczeciaSpinner = new JSpinner();
dataRozpoczeciaSpinner.setModel(model);
but the time is also displayed: 27.05.68 00:00
Just try the following: