i have a string in the format "01022006" which should get converted to date object and give me the date as 02-01-2006. i.e. 2nd Jan 2006. How can i achieve this?
when i try the following code it tells me unparseable date "01022006". could you pls help me the exact area where it is causing the problem and help me rectify it. thx.
String strDate=new String("01052006"); Date d = DateFormat.getDateInstance().parse(strDate); out.println(d.toString());