November 2nd, 2012, 07:21 PM
Converting verbose date from JDateChooser to "dd/MM/yyyy"
I'm using the JDateChooser component to get date input.
When I use the getDate() method and put the result in a String I get this:
Fri Nov 02 23:20:32 EST 2012
When I tried using SimpleDateFormat to parse it, I get an error saying it's an unparsable date.
What's the correct way of converting the above format of date into "dd/MM/yyyy" format?
November 5th, 2012, 08:27 AM
Please post the code you are using that shows the problem. Be sure to wrap the code in code tags.
What package is the JDateChooser in?