Jump to content
Changes to the Jaspersoft community edition download ×

how to print date in 21-JAN-2003 format


Recommended Posts

By: sac - sachinjain24

how to print date in 21-JAN-2003 format

2003-09-23 00:53

hi forum

i wish to print the date in my report in DD-MON-YYYY format . so can anyone tell me how i can do it?

 

 

 

 

By: Arun Kumar PG - pgarunkumar

RE: how to print date in 21-JAN-2003 format

2003-09-23 00:59

Use Date formatter and pass Date object as the argument.

 

 

 

 

 

By: Navaneetha Krishnan J - navaneethanj

RE: how to print date in 21-JAN-2003 format

2003-09-23 01:09

Use "new java.text.SimpleDateFormat("dd-MMM-YYYY", new Date())" in Textfield expression and set expression class as String.

 

 

 

 

 

By: Chuck Deal - cdeal

RE: how to print date in 21-JAN-2003 format

2003-09-23 05:54

There is a pattern attriubute for textfields. Set the textfield class to java.util.Date and the pattern "dd-MMM-yyyy".

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