Jump to content
Changes to the Jaspersoft community edition download ×

Date Format dd/mm/yyyy


ktrinad

Recommended Posts

By: Bruno - acvbruno

Date Format dd/mm/yyyy

2003-05-31 05:02

Hi,

the date format printing in the report is some thing like this.

Sat May 31 17:26:17 GMT+05:30 2003

Is it possible to change the date to formats like mm/dd/yyyy, mm/dd/yy etc. If Possible how to change that in Ireport. Please help me in detail.

 

regards

bruno

 

 

 

 

By: Giulio Toffoli - gt78

RE: Date Format dd/mm/yyyy

2003-05-31 05:09

Off course.

For this porpouse, use the pattern field of your textfield. Set the class of the field to java.util.Date

and insert in the pattern field the string

 

mm/dd/yyyy (or dd/mm/yyyy)

 

Giulio

 

 

 

 

By: Bruno - acvbruno

RE: Date Format dd/mm/yyyy

2003-05-31 05:23

hi,

Thanx it worked

 

regards

bruno

Link to comment
Share on other sites

  • 9 months later...
  • Replies 7
  • Created
  • Last Reply

Top Posters In This Topic

right. thank you very much for the reply.

but text field pattern is not what i'm

looking for, i'm looking for the pattern for

the date format inside of the chart.

i want the category expession to be date, but it will show "2007-06-28 00:00:00.0".

that is too long for me, so that's why i want to change the format.

http://www.jfree.org/jfreechart/images/DualAxisDemo1.png

like the "category" on this chart. the best is to be diagonal, so it can show the whole date.

Post edited by: kelly, at: 2007/06/29 21:19

Link to comment
Share on other sites

  • 12 years later...

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...