hard tiem to convert object to date.(urgent)

Hi,

I have obect .eg:In my object I have "Fri Jun 08 11:14:21 PDT 2007".

I am tryoing to convert into date .

This is how I am doing.

SimpleDateFormat df=new SimpleDateFormat("EEE MMM dd HH:mm:ss z YYYY");

Datedate=df.parse(object);

I am getting Unparseable date: "Fri Jun 08 11:14:21 PDT 2007" error.

Please help me

[422 byte] By [tutikashilpaa] at [2007-11-27 6:52:34]
# 1

Your SimpleDateFormat should be:

SimpleDateFormat df=new SimpleDateFormat("EEE MMM dd HH:mm:ss z yyyy");

NOT

SimpleDateFormat df=new SimpleDateFormat("EEE MMM dd HH:mm:ss z YYYY");

bensteina at 2007-7-12 18:27:07 > top of Java-index,Desktop,Core GUI APIs...