Localized date



I'm working in french and I would like to show the date in a report with the full month like this.

DATEFORMAT($P{start_date},"d MMMM")

When I preview the report in jasper studio, it appears in french but when I publish the report on jasper server, the month is in english.

My jasper server 6.3 is showing in french.

Do you know why ?

Thank you

mbourassa1's picture
Joined: Feb 1 2016 - 11:08am
Last seen: 1 year 9 months ago

try to use the expression below to explicitly specify required locale:

new SimpleDateFormat("d MMMM", Locale.FRANCE).format( $P{start_date} )

Best regards,

asimkin - 2 years 8 months ago

1 Answer:


Hi you can set the local on report level by using the REPORT_LOCALE. 

When you sign into jasper server, just under the password you can set "Show locale & time zone" to fr. 
You can set the default locale for jasper server through jasper property files
or if you doing a rest call to generate report, just user the locale property at end of rest url to set given locale to fr. 

Some way to do it, just depends on your solution outcome. 

joseng62's picture
Joined: Dec 5 2014 - 2:43am
Last seen: 1 month 1 week ago