Jump to content
Changes to the Jaspersoft community edition download ×

Date format problem

2006 IR Open Dicussion

Recommended Posts

By: Dharmendra Sharma - dkumar_sharma

Date format problem

2006-01-05 14:53

Hi All,


I have a parameter which takes value as "mm/dd/yyy" in string. I need to format the date as dd/mm/yyyy or dd/mmm/yyyy.


I am trying as below

new SimpleDateFormat("mm/dd/yyyy").parse($P{shdate}).toString()



but its giving me wrong value and format also is not as indicated. Please some one help on this.


thanks & regards,






By: TBG - thebiggunner

RE: Date format problem

2006-02-09 07:07


Try this.


new SimpleDateFormat("mm/DD/yyyy').format($P{shdate})







By: propsystem - propsystem

RE: Date format problem

2006-02-22 23:10

i got this error msg when i put this declaration in Textfield Expression:


new SimpleDateFormat("mm/DD/yyyy").format($P{TARIKH_HINGGA})



error msg:Cannot format given Object as a Date

Link to comment
Share on other sites

  • 1 month later...
  • Replies 1
  • 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...