tags:

views:

248

answers:

2

Hi, 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.

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

See here for details on the format,

Bozho
+2  A: 

Or use the Seam alternative:

<h:outputText value="#{currentDate}>
   <s:convertDateTime type="date" dateStyle="medium" />
</h:outputText>
Damo