0
I have a chart
of lines and on the X axis it displays a series of dates.
What I want to do is display date in the following pattern: dd/MM/yyyy
because the same one is displaying in the format: yyyy-MM-dd
. Dirt?
0
I have a chart
of lines and on the X axis it displays a series of dates.
What I want to do is display date in the following pattern: dd/MM/yyyy
because the same one is displaying in the format: yyyy-MM-dd
. Dirt?
3
Direct by Jasper add to your label property :
new java.text.SimpleDateFormat("dd/MM/yyyy").format($F{sua data})
Via Java :
SimpleDateFormat formatter = new SimpleDateFormat("dd/MM/yyyy");
String dataFormatada = null;
dataFormatada = formatter.format("sua data hora");
Thanks man, it worked!
You’re welcome! @Juliocesardasilvabarros
Browser other questions tagged java jasper-reports jasper
You are not signed in. Login or sign up in order to post.
It would not be better to treat directly in java?
– Wellington Avelino