1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2012
    Rep Power

    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?
  2. #2
  3. Contributing User
    Devshed Expert (3500 - 3999 posts)

    Join Date
    Aug 2010
    Eastern Florida
    Rep Power
    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?

IMN logo majestic logo threadwatch logo seochat tools logo