Guest User

Untitled

a guest
May 20th, 2018
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. private String fecha;
  2. private String hora_in;
  3. private String hora_out;
  4.  
  5. public String Editar(Integer id){
  6. Registros r=this.registrosFacade.find(id);
  7. this.id=r.getId();
  8. SimpleDateFormat formatter = new SimpleDateFormat("dd/MM/yyyy");
  9. this.fecha=r.getFecha(formatter(fecha));
  10. SimpleDateFormat format = new SimpleDateFormat("hh:mm:ss a");
  11. this.hora_in=r.getHoraIn(format.parse(hora_in));
  12. this.hora_out=r.getHoraOut(format.parse(hora_out));
  13. return "RegistroEdit";
  14. }
Add Comment
Please, Sign In to add comment