Hi Everyone,
I have a
string in this foramt :
Tue Dec 07 16:44:20 EST 2004
I want to convert it to a date of format :
mm.dd.yy
or
mm/dd/yy
I use following code, but it gives a ParseException.
DateFormat format = DateFormat.getDateInstance(DateFormat.SHORT);
format.setLenient(true);
Date date = format.parse(strDate);
Can anyone tell me what is wrong with above code ?
Thanks,
Gayatri