4 Replies Latest reply on Jul 18, 2008 3:48 PM by leandro godoy

    Filter By field of date

    leandro godoy Apprentice

      How can I solve the following problem:
      In my table has a filterBy for a field-type Date, so I am presenting to date in the following format 7/12/2009 but it's time to filter requires the following format 2009-12-7, how can I fix this I think is something simple, see my code:

      <rich:column filterBy="#{cr.datavencimento}" filterEvent="onkeyup"sortBy="#{cr.datavencimento}" >
       <f:facet name="header">
       <h:outputText value=""></h:outputText>
       <h:outputText value="#{cr.datavencimento}"
       styleClass="#{cr.situacao=='PAGO'? 'aberto' : cr.situacao=='ABERTO'? 'fechado':'erro' }"><f:convertDateTime dateStyle="medium" locale="#{local.localeAtual}"