public void listener_txtFechaCreacion() { Date inputDate = (Date) txtFechaCreacion.getValue(); DateFormat dateFormat = new SimpleDateFormat("dd/MM/yyyy"); FacesContext.getCurrentInstance() .addMessage("", new FacesMessage("Selected Date " + dateFormat.format(inputDate))); }