开发者

customize format of #{currentDate} in seam?

开发者 https://www.devze.com 2022-12-12 01:40 出处:网络
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?

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

精彩评论

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