I'm trying to convert the String "Fri Apr 2 17:43:22 2004" to a Date object.
Anyone knows how can I do that? I already tried to use DateFormat.getDateInstance().parse(), but it throws a parse exception alerting that it is an unparseable date.
See if you can create a DateFormat that matches your string format. I'm not up on date format enough to do it without some study. Lemme know what you find!
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
I tried to create a SimpleDateFormat as follows: SimpleDateFormat s = new SimpleDateFormat("EEE MMM d HH:mm:ss yyyy"); s.parse("Fri Sep 10 12:33:38 2004");