开发者

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 开发者_C百科this feature. Is that possible?

Thanks.


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

See here for details on the format.


Or use the Seam alternative:

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

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜