0 Replies Latest reply on Aug 20, 2007 12:21 PM by hager

    selectDate & convertDateTime

    hager

      Hello,
      i want to use the pattern dd/MM/yyyy, but i always have a date in a MM/dd/yyyy pattern
      how can I do?I tried dateFormat="dd/MM/yyyy" in the selectDate Tag and pattern="dd/MM/yyyy" in a convertDateTime Tag.

      the code


      <h:inputText id="dateEffet"
       maxlength="10"
       size="10"
       required="true"
       value="#{carriereHome.instance.dateEffet}">
      <s:convertDateTime type="date"
       dateStyle="short"
       pattern="dd/MM/yyyy"/>
      </h:inputText>
      <s:selectDate for="dateEffet" dateFormat="dd/MM/yyyy">
      <h:graphicImage url="img/dtpick.gif" style="margin-left:5px"/>
      </s:selectDate>

      I'm using seam 1.2.1 GA.
      thanks