简体   繁体   English

在seam中自定义#{currentDate}的格式?

[英]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. 谢谢。

<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: 或者使用Seam替代方案:

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM