Hi All,
I execueted the following code, but i get the output of the date in different format ....can someone tell me wats wrong in this code.
I want the output of the date to be in "dd/MM/yyyy" format.
CODE:
String strDate = "14/08/2008";
DateFormat df = new SimpleDateFormat("dd/MM/yyyy");
Date tempDate = df.parse(strDate);
System.out.println(" DATE format ="+tempDate);
OUTPUT:
DATE format =Thu Aug 14 00:00:00 IST 2008