Tengo un problema para recuperar la fecha en el formato correcto, tengo declarado en el Formbean asi
private Date hoy = new Date();
public void setHoy(Date newValue){ this.hoy = newValue; }
public Date getHoy(){ return hoy; }
Y en la pagina asi:
<h:inputText maxlength="10" size="12" binding="#{ReporteTalleresFormBean.wte_desde_fecha}"
styleClass="Editables" value="#{ReporteTalleresFormBean.hoy}" converter="javax.faces.DateTime">
<f:convertDateTime pattern="dd/MM/yyyy"/>
</h:inputText>
Pero cuando recupero en el Form bean el campo me aparece asi:
String fecha1 = this.getWte_desde_fecha().getValue().toString();
Me aparece la fecha como: Mon Dec 01 00:00:00 GMT-06:00 2008
Que error estoy comiendo, cuando la fecha me la muestra en la pagina como dd/MM/yyyy 01/12/2008