-1
Currently I mirror the JDateChooser
for a JTextField
, but now I need to mirror a JTextField
for a JDateChooser
. How to copy and convert a date from a text field to Jdatechooser?
I use it this way to send to the JTextField
String dia = Integer.toString(JDateChooser1.getCalendar().get(Calendar.DAY_OF_MONTH));
String mes = Integer.toString(JDateChooser1.getCalendar().get(Calendar.MONTH) + 1);
String year = Integer.toString(JDateChooser1.getCalendar().get(Calendar.YEAR));
String fecha = (dia + "/" + mes + "/" + year);
EntradadadosData.setText(fecha);
You tested the solution below?
– user28595