Jump to content
JasperReports Library 7.0 is now available ×

String convert to Date Format


jo_bonanno

Recommended Posts

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

I have a couple of questions -

 

Is $F{postdate} stored in the database as a date value or as a string?

 

If it is stored as a date, you can use the text field screen the pattern box to format as mm/dd/yyyy. Most of the formats that are brought up with the create button are dd/MM/yyyy - after selecting the format, I change it to MM/dd/yyyy without any issues :)

 

If it is stored as a string you can either use a Java expression to convert to date then display or use Java substring parsing to do the same.

Link to comment
Share on other sites

  • 2 weeks 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...