【发布时间】:2012-09-28 19:35:19
【问题描述】:
我在 iReport
中格式化日期时遇到问题我的电脑将区域设置语言配置为 法语,但是当 iReport 生成报告时,我发现日期格式为 英语 区域设置。
这是我的 jrxml 文件中的一些代码:
<band height="41" splitType="Stretch">
<textField pattern="dd/MM/yyyy h.mm a">
<reportElement uuid="fb711e77-c949-4a99-9b52-109aae00c8ed" x="87" y="19" width="100" height="20"/>
<textElement/>
<textFieldExpression><![CDATA[$P{datenow}]]></textFieldExpression>
</textField>
<staticText>
<reportElement uuid="51fb76a0-829e-4c36-b474-3ff9c7d4c239" x="41" y="19" width="48" height="20"/>
<textElement>
<font isBold="true" isItalic="true"/>
</textElement>
<text><![CDATA[Fes Le : ]]></text>
</staticText>
</band>
这是我的显示方式:Fri Sep 28 09:59:00
我的目标格式是:vendredi 28 septembre 2012 09:59(法语)
你有什么想法吗?
【问题讨论】:
-
您可以在How to change date format (month name) in iReport? 和Setting REPORT_LOCALE in IReport? 与您的问题相关的帖子中查看我的回答
标签: localization jasper-reports ireport date-formatting