Jump to content
We've recently updated our Privacy Statement, available here ×

Function DateFormat and Reports_Locale


picht

Recommended Posts

We use this expressin in a text field:

IF($P{P_JAHR}.equals( "NO" ),DATEFORMAT($F{MY_DATE},"MMMM yyyy"),
DATEFORMAT($F{MY_DATE},"yyyy"))
 

it means: Depending of the parameter p_year (YES/NO) it prints the date as 2015 or March 2015.

The user can decide, in which language the output shal be generated.

But the REPORT_LOCALE has no effect on this expression.

I think, DateFormat.getDateInstance(DateFormat.LONG, $P{REPORT_LOCALE}).format( $F{MyDateField} )

will not work, because I need exact the format above not something like March 1, 2015.

Thanks in advance.

Carsten

 

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...