Search code examples
javadateseam

customize format of #{currentDate} in seam?


I just got an answer to my seam question about displaying current date. Now I'm searching around to find the place to change the format for this feature. Is that possible?

Thanks.


Solution

  • <h:outputText value="#{currentDate}">
       <f:convertDateTime type="date" pattern="dd.MM.yyyy" />
    </h:outputText>
    

    See here for details on the format.