2006 IR Open Dicussion Posted September 5, 2006 Share Posted September 5, 2006 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, dkumar_sharma By: TBG - thebiggunner RE: Date format problem 2006-02-09 07:07 Hi. Try this. new SimpleDateFormat("mm/DD/yyyy').format($P{shdate}) regards:) 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 More sharing options...
harvestmoon12000 Posted October 9, 2006 Share Posted October 9, 2006 Hi Dharmendra Sharma, I usually will use this: new SimpleDateFormat("dd/mm/yyyy").format(new SimpleDateFormat("mm/dd/yyyy").parse($P{shdate}))Post edited by: harvestmoon12000, at: 2006/10/09 08:02 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now