Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private String fecha;
- private String hora_in;
- private String hora_out;
- public String Editar(Integer id){
- Registros r=this.registrosFacade.find(id);
- this.id=r.getId();
- SimpleDateFormat formatter = new SimpleDateFormat("dd/MM/yyyy");
- this.fecha=r.getFecha(formatter(fecha));
- SimpleDateFormat format = new SimpleDateFormat("hh:mm:ss a");
- this.hora_in=r.getHoraIn(format.parse(hora_in));
- this.hora_out=r.getHoraOut(format.parse(hora_out));
- return "RegistroEdit";
- }
Add Comment
Please, Sign In to add comment