Good day I have a question about why mark error does not let me convert the string data I tried with this:
String fecha_termino;
Calendar fechaInicialcalendar = Calendar.getInstance();
SimpleDateFormat format = new SimpleDateFormat("dd/MM/yyyy");
Date fecha_fin = fechaInicialcalendar.getTime();
fecha_termino=format.parse(fecha_fin);
And I also tried this way:
Date fecha_fin = fechaInicialcalendar.getTime();
fecha_termino=fecha_fin.toString();
format.parse(fecha_termino);
In the first it says "incompatible Types: Date can not coverted to String" and in the second it does String but it does not give the format "dd / MM / yyyy". I hope someone can solve my doubt.