Set format # {currentDate} in seam?

I just got an answer to my question that you are displaying the current date. Now I am looking to find a place to change the format of this function. Is it possible?

Thanks.

+4
source share
2 answers
<h:outputText value="#{currentDate}"> <f:convertDateTime type="date" pattern="dd.MM.yyyy" /> </h:outputText> 

See here for more details.

+4
source

Or use an alternative to Seam:

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

All Articles